listless

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

commit 021665e05c640a7f7b50729629a7d877799874e3
parent b2d5784e70bc1fb759d47a80e05c7314b453f4c4
Author: Michael Camilleri <[email protected]>
Date:   Sun, 19 Apr 2026 09:55:20 +0900

Show window when launched via XCTest

Diffstat:
MListlessMac/ListlessMacApp.swift | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/ListlessMac/ListlessMacApp.swift b/ListlessMac/ListlessMacApp.swift @@ -45,6 +45,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuItemValidation { applyAppearanceMode(UserDefaults.standard.integer(forKey: Self.appearanceModeKey)) keyValueSyncBridge.start() installMainMenu() + if ProcessInfo.processInfo.arguments.contains("UI_TESTING") { + promoteAndShowWindowIfNeeded() + } } func applicationDidBecomeActive(_ notification: Notification) {