fix: adjust init launch on dev
This commit is contained in:
parent
7b1866737f
commit
1b336d973d
@ -170,6 +170,12 @@ impl Sysopt {
|
|||||||
|
|
||||||
self.auto_launch = Some(auto);
|
self.auto_launch = Some(auto);
|
||||||
|
|
||||||
|
// 避免在开发时将自启动关了
|
||||||
|
#[cfg(feature = "verge-dev")]
|
||||||
|
if !enable {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
let auto = self.auto_launch.as_ref().unwrap();
|
let auto = self.auto_launch.as_ref().unwrap();
|
||||||
|
|
||||||
// macos每次启动都更新登录项,避免重复设置登录项
|
// macos每次启动都更新登录项,避免重复设置登录项
|
||||||
|
Loading…
Reference in New Issue
Block a user