listless

A simple list app for Apple platforms
Log | Files | Refs | README | LICENSE

commit b2d5784e70bc1fb759d47a80e05c7314b453f4c4
parent 578be3c28aa16d0b69444ce30ab08ef437a1228e
Author: Michael Camilleri <[email protected]>
Date:   Sun, 19 Apr 2026 09:23:28 +0900

Ensure that app becomes foregrounded when launched

Diffstat:
MListlessMac/ListlessMacApp.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ListlessMac/ListlessMacApp.swift b/ListlessMac/ListlessMacApp.swift @@ -221,9 +221,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuItemValidation { existingWindow.isVisible && existingWindow.title == "Items" } position(window, relativeTo: referenceWindow) + NSApp.activate(ignoringOtherApps: true) window.makeKeyAndOrderFront(nil) window.makeFirstResponder(nil) - NSApp.activate() } private func position(_ window: NSWindow, relativeTo referenceWindow: NSWindow?) {