pomoplus: fix unintentional redraws when unlocking

pull/3541/head
thyttan 2024-08-31 22:43:39 +02:00
parent ff3228c8f2
commit d7f7d2b95d
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}
});