We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 540a35e commit 8a36e70Copy full SHA for 8a36e70
Easydict/objc/ViewController/Window/WindowManager/EZWindowManager.m
@@ -667,10 +667,15 @@ - (void)showMainWindowIfNeeded {
667
[NSApp setActivationPolicy:activationPolicy];
668
669
if (showFlag) {
670
+ // If the main window does not exist, create it first, and show it center.
671
+ if (!_mainWindow) {
672
+ [self.mainWindow center];
673
+ }
674
+ [self.mainWindow makeKeyAndOrderFront:nil];
675
[self.floatingWindowTypeArray insertObject:@(EZWindowTypeMain) atIndex:0];
676
- [self.mainWindow center];
- [self.mainWindow makeKeyAndOrderFront:nil];
677
+ // TODO: We should record main window showing position, like mini window.
678
+// [self showFloatingWindowType:EZWindowTypeMain queryText:nil];
679
}
680
681
0 commit comments