Show shutdown confirmation dialog only in standalone mode

This commit is contained in:
0xb00bface 2020-08-19 14:27:37 +02:00
parent 7e2924d780
commit 8cfeb853a7
1 changed files with 11 additions and 9 deletions

View File

@ -254,6 +254,7 @@ public class CamrecApplication extends Application {
// check for active recordings
boolean shutdownNow = false;
if (config.getSettings().localRecording) {
try {
if (!recorder.getCurrentlyRecording().isEmpty()) {
ButtonType result = Dialogs.showShutdownDialog(primaryStage.getScene());
@ -266,6 +267,7 @@ public class CamrecApplication extends Application {
} catch (InvalidKeyException | NoSuchAlgorithmException | IOException ex) {
LOG.warn("Couldn't check, if recordings are running");
}
}
Alert shutdownInfo = new AutosizeAlert(Alert.AlertType.INFORMATION, primaryStage.getScene());
shutdownInfo.setTitle("Shutdown");