mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-26 02:15:47 +00:00
Rework
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user