fix(scheduler): save interval change even when auto is disabled
updateSchedulerInterval() only saved when enabled=true, so changing the dropdown with auto off was lost on refresh. Now always persists. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -204,10 +204,7 @@ async function toggleScheduler() {
|
||||
|
||||
async function updateSchedulerInterval() {
|
||||
if (_schedulerLoading) return; // ignore programmatic changes during load
|
||||
const enabled = document.getElementById('schedulerToggle').checked;
|
||||
if (enabled) {
|
||||
await toggleScheduler();
|
||||
}
|
||||
await toggleScheduler(); // always save interval (even when disabled)
|
||||
}
|
||||
|
||||
async function loadSchedulerStatus() {
|
||||
|
||||
Reference in New Issue
Block a user