shorten prefs key and improve formatting

This commit is contained in:
Anton Keks 2022-11-24 08:23:21 +02:00
parent 8aa1ca3dd9
commit 94cbaee49c
3 changed files with 3 additions and 14 deletions

2
.idea/ipscan.iml generated
View File

@ -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
View File

@ -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>

View File

@ -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]);