Skip to content

feat(settings): add open at login option - #35

Open
cyenxchen wants to merge 1 commit into
zshnb:mainfrom
cyenxchen:feat/open-at-login
Open

cyenxchen wants to merge 1 commit into
zshnb:mainfrom
cyenxchen:feat/open-at-login

Conversation

@cyenxchen

Copy link
Copy Markdown
Contributor

在设置 → 通用中新增"开机启动"选项。

改动:

  • 使用 SMAppService 注册登录项,开关状态与系统设置 → 登录项保持同步。
  • 需要用户在系统设置中批准时,会给出提示和跳转按钮。
  • 新增 LaunchAtLogin 状态逻辑及单测,同步更新 README 和五种语言文案。

Register the app as a login item with SMAppService from Settings → General.
The toggle mirrors the system status, so changes made in System Settings →
Login Items show up when Settings appears or the app becomes active. When
macOS needs approval, Settings explains it and links to Login Items.

This branch has not been deployed

No deployments
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.

1 participant