diff --git a/Passepartout/Library/Sources/AppUIMain/Views/AppMenu/AppWindow.swift b/Passepartout/Library/Sources/AppUIMain/Views/AppMenu/AppWindow.swift index 011276a1..82bff763 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/AppMenu/AppWindow.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/AppMenu/AppWindow.swift @@ -40,16 +40,14 @@ public final class AppWindow { if newValue { NSApp.activate(ignoringOtherApps: true) window.makeKeyAndOrderFront(self) + } else { + window.close() } } } private init() { } - - public func close() { - window.close() - } } private extension AppWindow {