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"));
|
||||
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
|
||||
// need to call setUI to run uiRemove from previous app when fast-loaded.
|
||||
Bangle.setUI();
|
||||
|
|
@ -1206,5 +1206,4 @@
|
|||
// stop buzzing, auto-close timeout on input
|
||||
["touch", "drag", "swipe"].forEach(l => Bangle.on(l, clearUnreadStuff));
|
||||
(B2 ? [BTN1] : [BTN1, BTN2, BTN3]).forEach(b => watches.push(setWatch(clearUnreadStuff, b, false)));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue