mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03: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 {
|
||||
autoLaunch.disable();
|
||||
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