Skip to content

Commit

Permalink
pomoplus: fix unintentional redraws when unlocking
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Aug 31, 2024
1 parent ff3228c commit d7f7d2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/pomoplus/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});

Expand Down

0 comments on commit d7f7d2b

Please sign in to comment.