Skip to content

Commit

Permalink
smpltmr: adapt to new setui
Browse files Browse the repository at this point in the history
btn -> btnRelease as to not fire unintentionally when long pressing the
button to reset the watch.
  • Loading branch information
thyttan committed Nov 5, 2024
1 parent d376a7a commit 2bcbfa3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/smpltmr/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
0.07: Update clock_info to avoid a redraw
0.08: Timer ClockInfo now updates once a minute
0.09: Timer ClockInfo resets to timer menu when blurred
0.10: Timer ClockInfo now uses +- icons, and changes timer from 'T-5 min' to just '5 min' to aid readability
0.10: Timer ClockInfo now uses +- icons, and changes timer from 'T-5 min' to just '5 min' to aid readability
0.11: Fix to handle updated firmware on fw 2v25 (or cutting edge >2v24.164), btn -> btnRelease. The timer would fire on long press before the watch reset.
2 changes: 1 addition & 1 deletion apps/smpltmr/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Bangle.setUI({
mode : "custom",
touch : function(n,e) {onTouch(n,e);},
drag : function(e) {onDrag(e);},
btn : function(n) {onButton();},
btnRelease : function(n) {onButton();},
});

g.clearRect(Bangle.appRect);
Expand Down
2 changes: 1 addition & 1 deletion apps/smpltmr/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "smpltmr",
"name": "Simple Timer",
"shortName": "Simple Timer",
"version": "0.10",
"version": "0.11",
"description": "A very simple app to start a timer.",
"icon": "app.png",
"tags": "tool,alarm,timer,clkinfo",
Expand Down

0 comments on commit 2bcbfa3

Please sign in to comment.