Run registerAlertSystem in a thread
This commit is contained in:
parent
deed010a3f
commit
04382dfa6e
|
@ -207,6 +207,7 @@ public class CamrecApplication extends Application {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerAlertSystem() {
|
private void registerAlertSystem() {
|
||||||
|
new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
// don't register before 1 minute has passed, because directly after
|
// don't register before 1 minute has passed, because directly after
|
||||||
// the start of ctbrec, an event for every online model would be fired,
|
// the start of ctbrec, an event for every online model would be fired,
|
||||||
|
@ -222,6 +223,7 @@ public class CamrecApplication extends Application {
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
}).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void writeColorSchemeStyleSheet(Stage primaryStage) {
|
private void writeColorSchemeStyleSheet(Stage primaryStage) {
|
||||||
|
|
Loading…
Reference in New Issue