Skip to content

Commit

Permalink
Merge branch 'fix/show_window_multi_screen' of github.com:AkaShark/Ea…
Browse files Browse the repository at this point in the history
…sydict into fix/show_window_multi_screen
  • Loading branch information
AkaShark committed Mar 11, 2024
2 parents cdc0b9d + 2862567 commit 1485220
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Easydict/App/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,14 @@ - (void)applicationWillTerminate:(NSNotification *)aNotification {
}

- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)application {
[EZWindowManager.shared closeMainWindowIfNeeded];

return NO;
}

- (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag {
// Fix https://github.com/tisfeng/Easydict/issues/447
[EZWindowManager.shared showMainWindowIfNedded];

return YES;
}

@end

0 comments on commit 1485220

Please sign in to comment.