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
|
// this os variable is a workaround for weird issues on windows
|
||||||
val os = System.getProperty("os.name").lowercase()
|
val os = System.getProperty("os.name").lowercase()
|
||||||
if (showingConsole) {
|
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"))
|
dropDownIcon.image = Image(App().javaClass.getResourceAsStream("icons/arrow_down.png"))
|
||||||
} else {
|
} else {
|
||||||
primary.getScene().window.height = if (os.contains("win")) 915.0 else 905.0
|
primary.getScene().window.height = if (os.contains("win")) 915.0 else 905.0
|
||||||
|
@ -389,6 +389,8 @@ class PrimaryController {
|
||||||
private fun onBuild() {
|
private fun onBuild() {
|
||||||
if (building) {
|
if (building) {
|
||||||
building = false
|
building = false
|
||||||
|
statusBar.text = "Cancelling..."
|
||||||
|
buildButton.isDisable = true
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
building = true
|
building = true
|
||||||
|
@ -519,6 +521,7 @@ class PrimaryController {
|
||||||
parentPane.isDisable = false
|
parentPane.isDisable = false
|
||||||
defaultsButton.isDisable = false
|
defaultsButton.isDisable = false
|
||||||
buildButton.text = "Build Server"
|
buildButton.text = "Build Server"
|
||||||
|
buildButton.isDisable = false
|
||||||
statusBar.text = if (building) {
|
statusBar.text = if (building) {
|
||||||
findServerJar()
|
findServerJar()
|
||||||
buildButton.text = "Rebuild Server"
|
buildButton.text = "Rebuild Server"
|
||||||
|
|
Loading…
Add table
Reference in a new issue