sched: don't force reload on alarm save

master
Rob Pilling 2023-06-05 11:02:25 +01:00
parent 1749b4c2f1
commit 4616d533b4
1 changed files with 2 additions and 4 deletions

View File

@ -88,10 +88,8 @@ function eventToAlarm(event, offsetMs) {
function upload() { function upload() {
Util.showModal("Saving..."); Util.showModal("Saving...");
Util.writeStorage("sched.json", JSON.stringify(alarms), () => { Util.writeStorage("sched.json", JSON.stringify(alarms), () => {
Puck.write(`\x10load()\n`, () => { // reload watch to load alarms Puck.write(`\x10E.showMessage("Hold button to\\nreload alarms")\n`, () => {
setTimeout(() => { location.reload(); // reload so we see current data
location.reload(); // reload so we see current data
}, 500);
}); });
}); });
} }