mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
fix: #41 Disabling auto start was causing error in some cases.
This commit is contained in:
parent
dbf6702873
commit
7d2578d9f6
@ -627,7 +627,11 @@ function updateScheduledStartOnBoot(toBeEnabled) {
|
||||
if (toBeEnabled && !isEnabled) {
|
||||
autoLaunch.enable();
|
||||
} else {
|
||||
try {
|
||||
autoLaunch.disable();
|
||||
} catch (error) {
|
||||
console.log("WARNING: Unable to disable start on boot. Is autoLaunch already disabled?", error);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user