diff --git a/apps/teatimer/ChangeLog b/apps/teatimer/ChangeLog index cd2b03136..fcdcda875 100644 --- a/apps/teatimer/ChangeLog +++ b/apps/teatimer/ChangeLog @@ -3,3 +3,4 @@ 0.03: Fix BG/FG Color if e.g. theme background is black 0.04: Get time zone from settings for showing the clock 0.05: Minor code improvements +0.06: Adjust format of title, save counter before leaving help screen diff --git a/apps/teatimer/README.md b/apps/teatimer/README.md index 71bec3ea8..b7ece6022 100644 --- a/apps/teatimer/README.md +++ b/apps/teatimer/README.md @@ -1,6 +1,6 @@ # Tea Timer app -A simple timer. You can easyly set up the time. The initial time is 2:30 +A simple timer. You can easily set up the time. The initial time is 2:30 On the first screen, you can - tap to get help diff --git a/apps/teatimer/app.js b/apps/teatimer/app.js index d9d2eb2b1..a22000342 100644 --- a/apps/teatimer/app.js +++ b/apps/teatimer/app.js @@ -18,7 +18,7 @@ E.setTimeZone(setting.timezone); // Title showing current time function appTitle() { - return "Tea Timer " + currentTime(); + return "Tea Timer\n" + currentTime(); } function currentTime() { @@ -28,7 +28,7 @@ function currentTime() { } function timeFormated(sec) { - var min = Math.floor(sec / 60); + let min = Math.floor(sec / 60); sec = sec % 60; if (sec < 10) sec = "0" + sec; return min + ":" + sec; @@ -223,6 +223,7 @@ function showHelp() { } // return to start else if (state == states.help) { + counterStart = counter; initTimer(); } } @@ -233,4 +234,4 @@ initDragEvents(); Bangle.on('touch', function(button, xy) { showHelp(); }); // event handling for button1 setWatch(buttonPressed, BTN1, {repeat: true}); -initTimer(); +initTimer(); \ No newline at end of file diff --git a/apps/teatimer/metadata.json b/apps/teatimer/metadata.json index 4bc7452ee..4d4ddd9e4 100644 --- a/apps/teatimer/metadata.json +++ b/apps/teatimer/metadata.json @@ -1,8 +1,8 @@ { "id": "teatimer", "name": "Tea Timer", - "version": "0.05", - "description": "A simple timer. You can easyly set up the time.", + "version": "0.06", + "description": "A simple timer. You can easily set up the time.", "icon": "teatimer.png", "type": "app", "tags": "tool",