aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/PrimaryController.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/PrimaryController.kt')
-rw-r--r--app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/PrimaryController.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/PrimaryController.kt b/app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/PrimaryController.kt
index dd795e2..cad547d 100644
--- a/app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/PrimaryController.kt
+++ b/app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/PrimaryController.kt
@@ -435,7 +435,7 @@ class PrimaryController {
var result = false
val resources = App().javaClass.getResource("icons/warning.png")
val dialog = Stage()
- dialog.icons.add(Image(this.javaClass.getResourceAsStream("app.png")))
+ dialog.icons.add(Image(App().javaClass.getResourceAsStream("app.png")))
dialog.setResizable(false)
dialog.initModality(Modality.APPLICATION_MODAL);
dialog.title = directory
@@ -504,7 +504,7 @@ class PrimaryController {
var result = false
val resources = App().javaClass.getResource("icons/$type.png")
val dialog = Stage()
- dialog.icons.add(Image(this.javaClass.getResourceAsStream("app.png")))
+ dialog.icons.add(Image(App().javaClass.getResourceAsStream("app.png")))
dialog.setResizable(false)
dialog.initModality(Modality.APPLICATION_MODAL);
dialog.title = directory