From 7e7795196cff9e53076db8527ad48b46d647ba37 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 9 Nov 2022 12:37:55 +0200 Subject: [PATCH] bring window to front when restored after being minimized to tray --- .../java/com/sparrowwallet/sparrow/control/TrayManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/TrayManager.java b/src/main/java/com/sparrowwallet/sparrow/control/TrayManager.java index 2e51d2fa..7d8ecd7a 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/TrayManager.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/TrayManager.java @@ -63,6 +63,8 @@ public class TrayManager { miStage.setFont(Font.decode(null).deriveFont(Font.BOLD)); miStage.addActionListener(e -> Platform.runLater(() -> { stage.show(); + stage.setAlwaysOnTop(true); + stage.setAlwaysOnTop(false); EventQueue.invokeLater(() -> { popupMenu.remove(miStage);