mirror of https://github.com/espruino/BangleApps
pomoplus: fix unintentional redraws when unlocking
parent
ff3228c8f2
commit
d7f7d2b95d
|
@ -196,13 +196,14 @@ if (common.state.running) {
|
|||
}
|
||||
|
||||
Bangle.on('lock', (on, reason) => {
|
||||
if (graphicState==2) return;
|
||||
if (on) {
|
||||
hideButtons();
|
||||
wu.hide();
|
||||
}
|
||||
if (!on) {
|
||||
drawButtons();
|
||||
wu.show();
|
||||
if (graphicState==0) wu.show();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue