Skip to content

Commit

Permalink
Merge branch 'dev' into fix/show_window_multi_screen
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng authored Mar 10, 2024
2 parents 6284df2 + 30aeeb6 commit 2862567
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 2862567

Please sign in to comment.