Skip to content

feat: Apply downloaded update when all windows are closed - #8211

Open
ThomasHartDev wants to merge 2 commits into
vercel:canaryfrom
ThomasHartDev:fix/issue-1325-auto-update-closed-windows
Open

feat: Apply downloaded update when all windows are closed#8211
ThomasHartDev wants to merge 2 commits into
vercel:canaryfrom
ThomasHartDev:fix/issue-1325-auto-update-closed-windows

Conversation

@ThomasHartDev

Copy link
Copy Markdown

When an update has already been downloaded and the last Hyper window is gone, call quitAndInstall on macOS. That is the only platform where zero windows still means Hyper is running in the dock.

Windows and Linux are unchanged. Closing the last window on Windows still calls app.quit(); Electron applies a downloaded update on the next launch. Linux has no in-app installer.

Fixes #1325

pnpm run test:unit passes (12 tests), including darwin/win32/linux idle-install cases. eslint is clean on the files this PR adds or changes.

Install a waiting update when Hyper has no open windows, instead of
leaving the process idle on the old version.
quitAndInstall restarts the app, so closing the last window on Windows
must keep falling through to app.quit(). macOS is the only platform
where zero windows still means Hyper is running.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-update if all windows closed

1 participant