Relocate BitsquareUI#getPrimaryStage

This commit is contained in:
Chris Beams 2014-11-04 13:27:11 +01:00
parent f278db01ac
commit ad1b3ccd1e
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73

View File

@ -58,10 +58,6 @@ public class BitsquareUI extends Application {
this.injector = Guice.createInjector(bitsquareModule);
}
public static Stage getPrimaryStage() {
return primaryStage;
}
@Override
public void start(Stage primaryStage) {
BitsquareUI.primaryStage = primaryStage;
@ -137,4 +133,8 @@ public class BitsquareUI extends Application {
bitsquareModule.close(injector);
System.exit(0);
}
public static Stage getPrimaryStage() {
return primaryStage;
}
}