fix: adjust init launch on dev

This commit is contained in:
GyDi 2022-09-26 01:35:19 +08:00
parent 7b1866737f
commit 1b336d973d
No known key found for this signature in database
GPG Key ID: 58B15242BA8277A6

View File

@ -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每次启动都更新登录项避免重复设置登录项