Files
iptvnator/apps/electron-backend-e2e
4grayandClaude Opus 5 f3425f8957 fix(electron): re-open a window when a second launch finds none
On macOS `window-all-closed` deliberately keeps the process alive while
the 'closed' handler clears App.mainWindow, so the single-instance guard
could hand a launch to a process with no window: focusExistingWindow(null)
did nothing and the new process quit, leaving the user with nothing on
screen.

The second-instance handler now re-creates the window when none is live,
via the same path the macOS dock 'activate' event uses. onActivate's body
moved to a public App.ensureMainWindow() so both entry points share it.

Reported by Codex review on #1272.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 20:08:13 +02:00
..