Skip to content

Commit

Permalink
Derp. Correctly check close-option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Griefed committed Sep 12, 2023
1 parent b9f316d commit 72e9d9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class GlobalSettings(guiProps: GuiProps, apiProperties: ApiProperties, component
val homeReset = BalloonTipButton(null,guiProps.resetIcon,"Reset to default value",guiProps) { homeSetting.file = apiProperties.defaultHomeDirectory() }

Check notice on line 42 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/GlobalSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'homeReset' could be private
val homeChoose = BalloonTipButton(null,guiProps.folderIcon,"Select directory",guiProps) {

Check notice on line 43 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/GlobalSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'homeChoose' could be private
val homeChooser = HomeDirChooser(apiProperties,"Home Directory Chooser")
if (homeChooser.showSaveDialog(mainFrame.frame) == JFileChooser.SAVE_DIALOG) {
if (homeChooser.showSaveDialog(mainFrame.frame) == JFileChooser.APPROVE_OPTION) {
homeSetting.file = homeChooser.selectedFile.absoluteFile
}
}
Expand All @@ -54,7 +54,7 @@ class GlobalSettings(guiProps: GuiProps, apiProperties: ApiProperties, component
val javaReset = BalloonTipButton(null,guiProps.resetIcon,"Reset to default value",guiProps) { javaSetting.file = File(apiProperties.acquireJavaPath()).absoluteFile }

Check notice on line 54 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/GlobalSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'javaReset' could be private
val javaChoose = BalloonTipButton(null,guiProps.folderIcon,"Select executable",guiProps) {

Check notice on line 55 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/GlobalSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'javaChoose' could be private
val javaChooser = JavaChooser(apiProperties,"Java Executable Chooser")
if (javaChooser.showSaveDialog(mainFrame.frame) == JFileChooser.SAVE_DIALOG) {
if (javaChooser.showSaveDialog(mainFrame.frame) == JFileChooser.APPROVE_OPTION) {
javaSetting.file = javaChooser.selectedFile.absoluteFile
}
}
Expand All @@ -66,7 +66,7 @@ class GlobalSettings(guiProps: GuiProps, apiProperties: ApiProperties, component
val serverPacksReset = BalloonTipButton(null,guiProps.resetIcon,"Reset to default value",guiProps) { serverPacksSetting.file = apiProperties.defaultServerPacksDirectory() }

Check notice on line 66 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/GlobalSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'serverPacksReset' could be private
val serverPacksChoose = BalloonTipButton(null,guiProps.folderIcon,"Select directory",guiProps) {

Check notice on line 67 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/GlobalSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'serverPacksChoose' could be private
val serverPackDirChooser = ServerPackDirChooser(apiProperties,"Server Pack Directory Chooser")
if (serverPackDirChooser.showSaveDialog(mainFrame.frame) == JFileChooser.SAVE_DIALOG) {
if (serverPackDirChooser.showSaveDialog(mainFrame.frame) == JFileChooser.APPROVE_OPTION) {
serverPacksSetting.file = serverPackDirChooser.selectedFile.absoluteFile
}
}
Expand Down Expand Up @@ -96,7 +96,7 @@ class GlobalSettings(guiProps: GuiProps, apiProperties: ApiProperties, component
val scriptReset = BalloonTipButton(null,guiProps.resetIcon,"Reset to default value",guiProps) { scriptSetting.text = apiProperties.defaultScriptTemplates().joinToString(", ") }

Check notice on line 96 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/GlobalSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'scriptReset' could be private
val scriptChoose = BalloonTipButton(null,guiProps.folderIcon,"Select directory",guiProps) {

Check notice on line 97 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/GlobalSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'scriptChoose' could be private
val scriptChooser = ScriptTemplatesChooser(apiProperties,"Script Template Chooser")
if (scriptChooser.showSaveDialog(mainFrame.frame) == JFileChooser.SAVE_DIALOG) {
if (scriptChooser.showSaveDialog(mainFrame.frame) == JFileChooser.APPROVE_OPTION) {
scriptSetting.text = scriptChooser.selectedFiles.joinToString(", ") { it.absolutePath }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class WebserviceSettings(guiProps: GuiProps, apiProperties: ApiProperties, mainF
val artemisDataDirectoryReset = BalloonTipButton(null,guiProps.resetIcon,"Reset to default value",guiProps) { artemisDataDirectorySetting.file = apiProperties.defaultArtemisDataDirectory().absoluteFile }

Check notice on line 37 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/WebserviceSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'artemisDataDirectoryReset' could be private
val artemisDataDirectoryChoose = BalloonTipButton(null,guiProps.folderIcon,"Select directory",guiProps) {

Check notice on line 38 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/WebserviceSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'artemisDataDirectoryChoose' could be private
val artemisChooser = ArtemisDataDirChooser(apiProperties,"Artemis Data Directory Chooser")
if (artemisChooser.showSaveDialog(mainFrame.frame) == JFileChooser.SAVE_DIALOG) {
if (artemisChooser.showSaveDialog(mainFrame.frame) == JFileChooser.APPROVE_OPTION) {
artemisDataDirectorySetting.file = artemisChooser.selectedFile.absoluteFile
}
}
Expand All @@ -55,7 +55,7 @@ class WebserviceSettings(guiProps: GuiProps, apiProperties: ApiProperties, mainF
val databaseFileReset = BalloonTipButton(null,guiProps.resetIcon,"Reset to default value",guiProps) { databaseFileSetting.file = apiProperties.defaultWebserviceDatabase().absoluteFile }

Check notice on line 55 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/WebserviceSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'databaseFileReset' could be private
val databaseFileChoose = BalloonTipButton(null,guiProps.folderIcon,"Select directory",guiProps) {

Check notice on line 56 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/WebserviceSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'databaseFileChoose' could be private
val webserviceChooser = WebserviceDBDirChooser(apiProperties,"Webservice Database Directory Chooser")
if (webserviceChooser.showSaveDialog(mainFrame.frame) == JFileChooser.SAVE_DIALOG) {
if (webserviceChooser.showSaveDialog(mainFrame.frame) == JFileChooser.APPROVE_OPTION) {
databaseFileSetting.file = File(webserviceChooser.selectedFile.absoluteFile,"serverpackcreator.db").absoluteFile
}
}
Expand All @@ -73,7 +73,7 @@ class WebserviceSettings(guiProps: GuiProps, apiProperties: ApiProperties, mainF
val logDirectoryReset = BalloonTipButton(null,guiProps.resetIcon,"Reset to default value",guiProps) { logDirectorySetting.file = apiProperties.defaultTomcatLogsDirectory().absoluteFile }

Check notice on line 73 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/WebserviceSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'logDirectoryReset' could be private
val logDirectoryChoose = BalloonTipButton(null,guiProps.folderIcon,"Select directory",guiProps) {

Check notice on line 74 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/WebserviceSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'logDirectoryChoose' could be private
val logDirectoryChooser = TomcatLogDirChooser(apiProperties,"Tomcat Log Directory Chooser")
if (logDirectoryChooser.showSaveDialog(mainFrame.frame) == JFileChooser.SAVE_DIALOG) {
if (logDirectoryChooser.showSaveDialog(mainFrame.frame) == JFileChooser.APPROVE_OPTION) {
logDirectorySetting.file = logDirectoryChooser.selectedFile.absoluteFile
}
}
Expand All @@ -85,7 +85,7 @@ class WebserviceSettings(guiProps: GuiProps, apiProperties: ApiProperties, mainF
val baseDirReset = BalloonTipButton(null,guiProps.resetIcon,"Reset to default value",guiProps) { baseDirSetting.file = apiProperties.defaultTomcatBaseDirectory().absoluteFile }

Check notice on line 85 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/WebserviceSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'baseDirReset' could be private
val baseDirChoose = BalloonTipButton(null,guiProps.folderIcon,"Select directory",guiProps) {

Check notice on line 86 in serverpackcreator-gui/src/main/kotlin/de/griefed/serverpackcreator/gui/window/settings/WebserviceSettings.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Class member can have 'private' visibility

Property 'baseDirChoose' could be private
val baseDirChooser = TomcatBaseDirChooser(apiProperties,"Tomcat Base Directory Chooser")
if (baseDirChooser.showSaveDialog(mainFrame.frame) == JFileChooser.SAVE_DIALOG) {
if (baseDirChooser.showSaveDialog(mainFrame.frame) == JFileChooser.APPROVE_OPTION) {
baseDirSetting.file = baseDirChooser.selectedFile.absoluteFile
}
}
Expand Down

0 comments on commit 72e9d9d

Please sign in to comment.