diff --git a/Easydict/Feature/ViewController/Window/WindowManager/EZWindowManager.m b/Easydict/Feature/ViewController/Window/WindowManager/EZWindowManager.m index 639b6abec..d11e00058 100644 --- a/Easydict/Feature/ViewController/Window/WindowManager/EZWindowManager.m +++ b/Easydict/Feature/ViewController/Window/WindowManager/EZWindowManager.m @@ -438,6 +438,7 @@ - (void)showFloatingWindow:(EZBaseQueryWindow *)window atPoint:(CGPoint)point { // mainWindow has been ordered out before, so we need to order back. if ([EZMainQueryWindow isAlive]) { [self.mainWindow orderBack:nil]; + [self.mainWindow close]; } } @@ -906,7 +907,6 @@ - (void)closeFloatingWindow { if ([EZMainQueryWindow isAlive]) { [self.mainWindow orderBack:nil]; - [self.mainWindow close]; } // Move floating window type to second.