MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / setLaunchAtLogin

Method setLaunchAtLogin

src/main/api/renderer/settings.ts:210–216  ·  view source on GitHub ↗
(enable: boolean)

Source from the content-addressed store, hash-verified

208
209 // 设置开机启动
210 public setLaunchAtLogin(enable: boolean): void {
211 app.setLoginItemSettings({
212 openAtLogin: enable,
213 openAsHidden: true
214 })
215 console.log('[Settings] 设置开机启动:', enable)
216 }
217
218 // 获取开机启动状态
219 public getLaunchAtLogin(): boolean {

Callers 2

setupIPCMethod · 0.95
setupIPCMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected