From 633132c1c058a9e7bd994b350b775e1b9aa779ab Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sat, 20 May 2023 22:36:34 -0600 Subject: fix cancel button --- .../xyz/brysonsteck/ServerCraft/controllers/PrimaryController.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/xyz/brysonsteck') 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" -- cgit v1.2.3