fix: simpletimer - BTN2 to open launcher

master
Francesco Bedussi 2020-05-18 22:57:08 +02:00
parent 0df077db55
commit 3148a59dc6
3 changed files with 3 additions and 1 deletions

View File

@ -1633,7 +1633,7 @@
"id": "simpletimer",
"name": "Timer",
"icon": "app.png",
"version": "0.02",
"version": "0.03",
"description": "Simple timer, useful when playing board games or cooking",
"tags": "timer",
"readme": "README.md",

View File

@ -1,2 +1,3 @@
0.01: Initial version
0.02: Reset with gesture
0.03: BTN2 to open launcher

View File

@ -111,6 +111,7 @@ function reset(value) {
state = value === 0 ? "unset" : "set";
}
setWatch(Bangle.showLauncher, BTN2, { repeat: false, edge: "falling" });
function addWatch() {
clearWatch();
setWatch(changeState, BTN1, {