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) => {
|
Bangle.on('lock', (on, reason) => {
|
||||||
|
if (graphicState==2) return;
|
||||||
if (on) {
|
if (on) {
|
||||||
hideButtons();
|
hideButtons();
|
||||||
wu.hide();
|
wu.hide();
|
||||||
}
|
}
|
||||||
if (!on) {
|
if (!on) {
|
||||||
drawButtons();
|
drawButtons();
|
||||||
wu.show();
|
if (graphicState==0) wu.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue