mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-20 07:04:53 +00:00
Follow-up to the trailing-show fix. Codex review on #718 flagged that `focusMainWindow()` in main.cjs (called from `app.on("second-instance")` and as the fallback path of `app.on("activate")`) still calls `win.show()/focus()` without cancelling any in-flight close-to-tray pending hide. A user who closes a fullscreen window to tray and then relaunches the app via a second instance would see the window briefly reappear and get hidden again when `leave-full-screen` lands. Add `clearPendingFullscreenHide(win)` at the top of `focusMainWindow()` so every reopen entry point (dock click, second-instance, activate fallback) cancels the pending hide before showing the window.