From 2d554eb522a6763a6f3f120a6563666478915751 Mon Sep 17 00:00:00 2001 From: Fabian Groeger Date: Wed, 6 Oct 2021 19:10:59 +0200 Subject: [PATCH] Only order windows which are currently visible --- mac/Bagel/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mac/Bagel/AppDelegate.swift b/mac/Bagel/AppDelegate.swift index 9809af0..af89c55 100644 --- a/mac/Bagel/AppDelegate.swift +++ b/mac/Bagel/AppDelegate.swift @@ -29,7 +29,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool { - for window in sender.windows { + for window in sender.windows where window.isVisible { window.orderFront(self) }