diff --git a/Easydict/App/AppDelegate.m b/Easydict/App/AppDelegate.m index 4de7c85f8..874737b73 100644 --- a/Easydict/App/AppDelegate.m +++ b/Easydict/App/AppDelegate.m @@ -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