parent
fb9eed74c5
commit
d7286c451b
|
|
@ -10,3 +10,4 @@
|
||||||
0.09: Minor code improvements
|
0.09: Minor code improvements
|
||||||
0.10: Handle missing alarm data, e.g. when our reset is fired from
|
0.10: Handle missing alarm data, e.g. when our reset is fired from
|
||||||
non-multitimer alarms
|
non-multitimer alarms
|
||||||
|
0.11: Preserve setUI removal callbacks, e.g. those of showMenu
|
||||||
|
|
|
||||||
|
|
@ -691,10 +691,12 @@ function setUI() {
|
||||||
// E.showMenu/E.showScroller/E.showAlert call setUI, so we register onDrag() separately
|
// E.showMenu/E.showScroller/E.showAlert call setUI, so we register onDrag() separately
|
||||||
// and tack on uiRemove after the fact to avoid interfering
|
// and tack on uiRemove after the fact to avoid interfering
|
||||||
Bangle.on("drag", onDrag);
|
Bangle.on("drag", onDrag);
|
||||||
|
const origRemove = Bangle.uiRemove;
|
||||||
Bangle.uiRemove = () => {
|
Bangle.uiRemove = () => {
|
||||||
Bangle.removeListener("drag", onDrag);
|
Bangle.removeListener("drag", onDrag);
|
||||||
Object.values(timerInt1).forEach(clearTimeout);
|
Object.values(timerInt1).forEach(clearTimeout);
|
||||||
Object.values(timerInt2).forEach(clearTimeout);
|
Object.values(timerInt2).forEach(clearTimeout);
|
||||||
|
if (origRemove) origRemove();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "multitimer",
|
"id": "multitimer",
|
||||||
"name": "Multi Timer",
|
"name": "Multi Timer",
|
||||||
"version": "0.10",
|
"version": "0.11",
|
||||||
"description": "Set timers and chronographs (stopwatches) and watch them count down in real time. Pause, create, edit, and delete timers and chronos, and add custom labels/messages. Also sets alarms.",
|
"description": "Set timers and chronographs (stopwatches) and watch them count down in real time. Pause, create, edit, and delete timers and chronos, and add custom labels/messages. Also sets alarms.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"screenshots": [
|
"screenshots": [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue