Skip to content

Commit

Permalink
Replace deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitot committed Jun 23, 2024
1 parent fef3c4b commit 57dfe1d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Vienna/Sources/Application/AppController.m
Original file line number Diff line number Diff line change
Expand Up @@ -909,10 +909,16 @@ -(IBAction)downloadEnclosure:(id)sender
/* openVienna
* Calls into showMainWindow but activates the app first.
*/
-(IBAction)openVienna:(id)sender
- (IBAction)openVienna:(id)sender
{
[NSApp activateIgnoringOtherApps:YES];
[self showMainWindow:sender];
if (@available(macOS 14, *)) {
[NSApp activate];
} else {
[NSApp activateIgnoringOtherApps:YES];
}
if (NSApp.isActive) {
[self showMainWindow:sender];
}
}

/* showMainWindow
Expand Down

0 comments on commit 57dfe1d

Please sign in to comment.