更新 main.go

This commit is contained in:
XOF
2025-12-02 22:39:47 +08:00
parent b7e7ee1ab7
commit d80d6ee983

View File

@@ -683,6 +683,9 @@ func loadTasks() {
json.Unmarshal(data, &list) json.Unmarshal(data, &list)
mu.Lock() mu.Lock()
for _, t := range list { for _, t := range list {
if t.NotifyEnabled == false && t.ID != "" {
t.NotifyEnabled = true
}
tasks[t.ID] = t tasks[t.ID] = t
} }
mu.Unlock() mu.Unlock()