Renaming of setTime to setTimer.

pull/1513/head
David Peer 2022-02-26 11:55:35 +01:00
parent fd3401bd23
commit 56a4cd0dff
4 changed files with 5 additions and 5 deletions

View File

@ -596,7 +596,7 @@ function increaseAlarm(){
// Set to zero if alarm was disabled before
if(!isAlarmEnabled()){
WIDGETS["widtmr"].setTime(0);
WIDGETS["widtmr"].setTimer(0);
}
WIDGETS["widtmr"].increaseTimer(5);

View File

@ -425,7 +425,7 @@ function increaseAlarm(){
// Set to zero if alarm was disabled before
if(!isAlarmEnabled()){
WIDGETS["widtmr"].setTime(0);
WIDGETS["widtmr"].setTimer(0);
}
WIDGETS["widtmr"].increaseTimer(5);

View File

@ -21,7 +21,7 @@ into your own app.
The following functions are available:
- isStarted() -> boolean
- setStarted(boolean) -> void
- setTime(t) -> void
- setTimer(t) -> void
- increaseTimer(int) -> void
- decreaseTimer(int) -> void
- getRemainingMinutes() -> int
@ -37,7 +37,7 @@ Bangle.on('touch', function(btn, e){
// Set to zero if alarm was disabled before. Otherwise
// it starts from the last setting made by the user.
if(!isAlarmEnabled()){
WIDGETS["widtmr"].setTime(0);
WIDGETS["widtmr"].setTimer(0);
}
WIDGETS["widtmr"].increaseTimer(5);

View File

@ -121,7 +121,7 @@
}
updateSettings();
}, setTime: function(t){
}, setTimer: function(t){
settings.minutes = Math.max(0, t);
settings.started = t > 0;
updateSettings();