sched: don't force reload on alarm save

pull/2782/head
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() {
Util.showModal("Saving...");
Util.writeStorage("sched.json", JSON.stringify(alarms), () => {
Puck.write(`\x10load()\n`, () => { // reload watch to load alarms
setTimeout(() => {
location.reload(); // reload so we see current data
}, 500);
Puck.write(`\x10E.showMessage("Hold button to\\nreload alarms")\n`, () => {
location.reload(); // reload so we see current data
});
});
}