mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
shorten prefs key and improve formatting
This commit is contained in:
parent
8aa1ca3dd9
commit
94cbaee49c
2
.idea/ipscan.iml
generated
2
.idea/ipscan.iml
generated
@ -1,2 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id="ipscan" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="3.7.4-13-g1461737.dirty" type="JAVA_MODULE" version="4" />
|
||||
8
.idea/modules.xml
generated
8
.idea/modules.xml
generated
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/ipscan.iml" filepath="$PROJECT_DIR$/.idea/ipscan.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@ -26,7 +26,6 @@ public class GUIConfig {
|
||||
public boolean askScanConfirmation;
|
||||
|
||||
public int[] mainWindowSize;
|
||||
|
||||
public int[] mainWindowPosition;
|
||||
public boolean isMainWindowMaximized;
|
||||
|
||||
@ -51,7 +50,7 @@ public class GUIConfig {
|
||||
|
||||
isMainWindowMaximized = preferences.getBoolean("windowMaximized", false);
|
||||
mainWindowSize = new int[] {preferences.getInt("windowWidth", 800), preferences.getInt("windowHeight", 450)};
|
||||
mainWindowPosition = new int[]{preferences.getInt("windowPosition-x",50), preferences.getInt("windowPosition-y",85)};
|
||||
mainWindowPosition = new int[] {preferences.getInt("windowX", 50), preferences.getInt("windowY", 85)};
|
||||
detailsWindowSize = new int[] {preferences.getInt("detailsWidth", 400), preferences.getInt("detailsHeight", 300)};
|
||||
}
|
||||
|
||||
@ -70,8 +69,8 @@ public class GUIConfig {
|
||||
preferences.putInt("windowWidth", mainWindowSize[0]);
|
||||
preferences.putInt("windowHeight", mainWindowSize[1]);
|
||||
|
||||
preferences.putInt("windowPosition-x",mainWindowPosition[0]);
|
||||
preferences.putInt("windowPosition-y",mainWindowPosition[1]);
|
||||
preferences.putInt("windowX", mainWindowPosition[0]);
|
||||
preferences.putInt("windowY", mainWindowPosition[1]);
|
||||
}
|
||||
|
||||
preferences.putInt("detailsWidth", detailsWindowSize[0]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user