Closed phlpsong closed 7 months ago
I noticed that we check [EZMainQueryWindow isAlive]
twice in the showFloatingWindow
function of EZWindowManager and then perform orderOut
and orderBack
on the mainWindow
.
Is it necessary to have the subsequent orderBack
?
Currently the window management in the code is confusing, it needs to be improved https://github.com/tisfeng/Easydict/issues/362 , but I'm not too familiar with this.
Previously I found that if the main window is turned on, when displaying the mini query window, the main window needs to be hidden first for a better user experience, if don't call orderBack
, we can't see main window any more. But now I tested it and it seems to work without orderBack
, which is strange.
I haven't tested this in Stage Manager mode
before, you can try to fix this as you see fit.
Please confirm the following:
Problem description
query window dismissed before showing the result in Stage Manager mode
Reproduction steps
Hide main window at startup
Screenshot
https://github.com/tisfeng/Easydict/assets/103433299/c3078ab7-a5d8-4612-85e2-f484545d2605
Expected result
The query window stays visible
Proposed solution (optional)
No response
Device type and OS version
macOS 14.2.1
Are you willing to submit a PR to fix this issue?