messagelist: minor cleanup
Simply doing nothing when MESSAGES failed to load isn't really helpful anyway.master
parent
dc4c548271
commit
a5a0b180ba
|
|
@ -1161,7 +1161,7 @@
|
||||||
idx = MESSAGES.findIndex(m => m.src && m.src.toLowerCase().startsWith("alarm"));
|
idx = MESSAGES.findIndex(m => m.src && m.src.toLowerCase().startsWith("alarm"));
|
||||||
if (idx>=0) alarm = MESSAGES.splice(idx, 1)[0];
|
if (idx>=0) alarm = MESSAGES.splice(idx, 1)[0];
|
||||||
};
|
};
|
||||||
if (MESSAGES!==undefined) { // only if loading MESSAGES worked
|
|
||||||
// Internal setUI suppresses Bangle.uiRemove between internal screens, so we
|
// Internal setUI suppresses Bangle.uiRemove between internal screens, so we
|
||||||
// need to call setUI to run uiRemove from previous app when fast-loaded.
|
// need to call setUI to run uiRemove from previous app when fast-loaded.
|
||||||
Bangle.setUI();
|
Bangle.setUI();
|
||||||
|
|
@ -1207,4 +1207,3 @@
|
||||||
["touch", "drag", "swipe"].forEach(l => Bangle.on(l, clearUnreadStuff));
|
["touch", "drag", "swipe"].forEach(l => Bangle.on(l, clearUnreadStuff));
|
||||||
(B2 ? [BTN1] : [BTN1, BTN2, BTN3]).forEach(b => watches.push(setWatch(clearUnreadStuff, b, false)));
|
(B2 ? [BTN1] : [BTN1, BTN2, BTN3]).forEach(b => watches.push(setWatch(clearUnreadStuff, b, false)));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue