From bba540f8b6391f3ca83f0bba8e510c468c56d06c Mon Sep 17 00:00:00 2001 From: Robert McGovern Date: Mon, 31 May 2021 23:03:20 +0100 Subject: [PATCH] Made preferences window get focus Made it get focus when opening from the status bar menu. --- QuietUnrarAppDelegate.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QuietUnrarAppDelegate.m b/QuietUnrarAppDelegate.m index 9799036..5df504b 100644 --- a/QuietUnrarAppDelegate.m +++ b/QuietUnrarAppDelegate.m @@ -249,7 +249,8 @@ BOOL appRunning = NO; preferencesWindowController.quietUnrar = self; } - [preferencesWindowController showWindow:nil]; + [preferencesWindowController.window makeKeyAndOrderFront:self]; + [NSApp activateIgnoringOtherApps:YES]; } - (void) quit {