fix cancel button
This commit is contained in:
parent
9090a0f095
commit
633132c1c0
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue