diff options
author | Bryson Steck <brysonsteck@protonmail.com> | 2023-05-20 22:36:34 -0600 |
---|---|---|
committer | Bryson Steck <brysonsteck@protonmail.com> | 2023-05-20 22:36:34 -0600 |
commit | 633132c1c058a9e7bd994b350b775e1b9aa779ab (patch) | |
tree | 6d462c5934924c82ca46dcb0eb9da75c1389ad9d /src/main | |
parent | 9090a0f095af855518cb899f36346d79e0a07b0b (diff) | |
download | ServerCraft-633132c1c058a9e7bd994b350b775e1b9aa779ab.tar ServerCraft-633132c1c058a9e7bd994b350b775e1b9aa779ab.tar.gz ServerCraft-633132c1c058a9e7bd994b350b775e1b9aa779ab.tar.bz2 |
fix cancel button
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/PrimaryController.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/PrimaryController.kt b/src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/PrimaryController.kt index 11bcf5c..5b26481 100644 --- a/src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/PrimaryController.kt +++ b/src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/PrimaryController.kt @@ -354,7 +354,7 @@ class PrimaryController { // this os variable is a workaround for weird issues on windows val os = System.getProperty("os.name").lowercase() if (showingConsole) { - primary.getScene().window.height = if (os.contains("win")) 750.0 else 743.0 + primary.getScene().window.height = if (os.contains("win")) 753.0 else 743.0 dropDownIcon.image = Image(App().javaClass.getResourceAsStream("icons/arrow_down.png")) } else { primary.getScene().window.height = if (os.contains("win")) 915.0 else 905.0 @@ -389,6 +389,8 @@ class PrimaryController { private fun onBuild() { if (building) { building = false + statusBar.text = "Cancelling..." + buildButton.isDisable = true return; } building = true @@ -519,6 +521,7 @@ class PrimaryController { parentPane.isDisable = false defaultsButton.isDisable = false buildButton.text = "Build Server" + buildButton.isDisable = false statusBar.text = if (building) { findServerJar() buildButton.text = "Rebuild Server" |