aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/PrimaryController.kt5
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"