This commit is contained in:
crschnick
2026-03-25 16:11:13 +00:00
parent c45290c6fe
commit 86240d0098
2 changed files with 1 additions and 7 deletions
@@ -307,12 +307,6 @@ public class AppMainWindow {
// Close other windows
Stage.getWindows().stream().filter(w -> !w.equals(stage)).toList().forEach(w -> w.fireEvent(e));
// Iconifying stages on Windows will break if the window is closed
// Work around this issue it by re-showing it immediately before hiding it again
if (OsType.ofLocal() == OsType.WINDOWS) {
stage.setIconified(false);
}
// Close self
stage.close();
AppOperationMode.onWindowClose();
@@ -83,7 +83,7 @@ public class AppSideWindow {
public static Alert createEmptyAlert() {
Alert alert = new Alert(Alert.AlertType.NONE);
if (AppMainWindow.get() != null) {
if (AppMainWindow.get() != null && AppMainWindow.get().getStage().isShowing() && !AppMainWindow.get().getStage().isIconified()) {
alert.initOwner(AppMainWindow.get().getStage());
}
alert.getDialogPane().getScene().setFill(Color.TRANSPARENT);