You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Background saving has been enabled. You can now close this application and it will continue saving blobs at the interval you set, and won't use any resources when it is not running.", ButtonType.OK);
431
-
alert.showAndWait();
424
+
if (Background.isBackgroundEnabled()) {
425
+
updateBackgroundSettings();
426
+
Utils.showInfoAlert("A background saving task has been scheduled. You can now quit this application, and blobs will continue to be saved at the interval you set.");
427
+
} else {
428
+
Utils.showUnreportableError("Background saving is not enabled. Try again with the debug log open to check for any errors.");
429
+
}
432
430
}
433
431
}
434
432
@@ -437,15 +435,12 @@ public void forceCheckForBlobsHandler() {
437
435
}
438
436
439
437
publicvoidresetAppHandler() {
440
-
AlertconfirmationAlert = newAlert(Alert.AlertType.CONFIRMATION, "Are you sure you would like to reset/remove all blobsaver data?");
441
-
confirmationAlert.showAndWait();
442
-
if (confirmationAlert.getResult() == null || ButtonType.CANCEL.equals(confirmationAlert.getResult())) {
443
-
return;
438
+
ButtonTyperesult = Utils.showConfirmAlert("Are you sure you would like to reset/remove all blobsaver data?");
439
+
if (ButtonType.OK.equals(result)) {
440
+
Prefs.resetPrefs();
441
+
Utils.showInfoAlert("The application data have been removed. \nThe application will now exit.");
442
+
Main.exit();
444
443
}
445
-
Prefs.resetPrefs();
446
-
AlertapplicationCloseAlert = newAlert(Alert.AlertType.INFORMATION, "The application data have been removed. \nThe application will now exit.", ButtonType.OK);
447
-
applicationCloseAlert.showAndWait();
448
-
Main.exit();
449
444
}
450
445
451
446
publicvoidexportSavedDevices() {
@@ -474,9 +469,8 @@ public void importFromXML() {
474
469
}
475
470
476
471
publicvoidimportFromOldVersion() {
477
-
Alertalert = newAlert(Alert.AlertType.CONFIRMATION, "Continuing will import all presets into saved devices from blobsaver version 2.5.5 and older.");
478
-
alert.showAndWait();
479
-
if (ButtonType.OK.equals(alert.getResult())) {
472
+
ButtonTyperesult = Utils.showConfirmAlert("Continuing will import all presets into saved devices from blobsaver version 2.5.5 and older.");
0 commit comments