Skip to content

refactor: drop unsupported openAsHidden - #3587

Merged
setchy merged 2 commits into
mainfrom
refactor/auto-launch-drop-open-as-hidden
Nov 1, 2026
Merged

setchy merged 2 commits into
mainfrom
refactor/auto-launch-drop-open-as-hidden

Conversation

@setchy

@setchy setchy commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Part of OpenSpec change 04-clean-up-dependencies-and-electron-debt (task 2.1).

Electron removed the openAsHidden login-item option — it only worked on macOS 12 and below, which Electron no longer supports. This drops it from IAutoLaunch and the preload payload; the main handler now forwards only openAtLogin to app.setLoginItemSettings.

Verification

  • pnpm check
  • src/preload/index.test.ts — payload contains only openAtLogin
  • src/main/handlers/system.test.ts — only openAtLogin reaches the OS

Electron 44 removed openAsHidden from the login-item settings. Send only openAtLogin from the preload and main handler, and assert the payload in the preload and handler tests.
@setchy setchy added the refactor Refactoring of existing feature label Nov 1, 2026
@setchy setchy changed the title refactor(auto-launch): drop unsupported openAsHidden refactor: drop unsupported openAsHidden Nov 1, 2026
@setchy
setchy marked this pull request as ready for review November 1, 2026 21:19
@setchy
setchy requested a review from afonsojramos as a code owner November 1, 2026 21:19
@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2026

Copy link
Copy Markdown

@setchy
setchy merged commit 9c0e07b into main Nov 1, 2026
23 checks passed
@setchy
setchy deleted the refactor/auto-launch-drop-open-as-hidden branch November 1, 2026 21:29
@github-actions github-actions Bot added this to the Release 8.0.0 milestone Nov 1, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in Gitify v8.0.0! 🎉

Downloads for macOS, Windows, and Linux are available on the release page.

Thanks for helping make Gitify better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring of existing feature

Development

Successfully merging this pull request may close these issues.

1 participant