forked from j62/ctbrec
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() {
|
||||
new Thread(() -> {
|
||||
try {
|
||||
// don't register before 1 minute has passed, because directly after
|
||||
// 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) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
|
||||
private void writeColorSchemeStyleSheet(Stage primaryStage) {
|
||||
|
|
Loading…
Reference in New Issue