Explorar el Código

fix: ignore disable auto launch error

GyDi hace 2 años
padre
commit
5e429c7a94
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src-tauri/src/core/sysopt.rs

+ 1 - 1
src-tauri/src/core/sysopt.rs

@@ -206,7 +206,7 @@ impl Sysopt {
 
     match enable {
       true => auto_launch.enable()?,
-      false => auto_launch.disable()?,
+      false => crate::log_if_err!(auto_launch.disable()), // 忽略关闭的错误
     };
 
     Ok(())