mirror of https://github.com/espruino/BangleApps
Renaming of setTime to setTimer.
parent
fd3401bd23
commit
56a4cd0dff
|
@ -596,7 +596,7 @@ function increaseAlarm(){
|
||||||
|
|
||||||
// Set to zero if alarm was disabled before
|
// Set to zero if alarm was disabled before
|
||||||
if(!isAlarmEnabled()){
|
if(!isAlarmEnabled()){
|
||||||
WIDGETS["widtmr"].setTime(0);
|
WIDGETS["widtmr"].setTimer(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
WIDGETS["widtmr"].increaseTimer(5);
|
WIDGETS["widtmr"].increaseTimer(5);
|
||||||
|
|
|
@ -425,7 +425,7 @@ function increaseAlarm(){
|
||||||
|
|
||||||
// Set to zero if alarm was disabled before
|
// Set to zero if alarm was disabled before
|
||||||
if(!isAlarmEnabled()){
|
if(!isAlarmEnabled()){
|
||||||
WIDGETS["widtmr"].setTime(0);
|
WIDGETS["widtmr"].setTimer(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
WIDGETS["widtmr"].increaseTimer(5);
|
WIDGETS["widtmr"].increaseTimer(5);
|
||||||
|
|
|
@ -21,7 +21,7 @@ into your own app.
|
||||||
The following functions are available:
|
The following functions are available:
|
||||||
- isStarted() -> boolean
|
- isStarted() -> boolean
|
||||||
- setStarted(boolean) -> void
|
- setStarted(boolean) -> void
|
||||||
- setTime(t) -> void
|
- setTimer(t) -> void
|
||||||
- increaseTimer(int) -> void
|
- increaseTimer(int) -> void
|
||||||
- decreaseTimer(int) -> void
|
- decreaseTimer(int) -> void
|
||||||
- getRemainingMinutes() -> int
|
- getRemainingMinutes() -> int
|
||||||
|
@ -37,7 +37,7 @@ Bangle.on('touch', function(btn, e){
|
||||||
// Set to zero if alarm was disabled before. Otherwise
|
// Set to zero if alarm was disabled before. Otherwise
|
||||||
// it starts from the last setting made by the user.
|
// it starts from the last setting made by the user.
|
||||||
if(!isAlarmEnabled()){
|
if(!isAlarmEnabled()){
|
||||||
WIDGETS["widtmr"].setTime(0);
|
WIDGETS["widtmr"].setTimer(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
WIDGETS["widtmr"].increaseTimer(5);
|
WIDGETS["widtmr"].increaseTimer(5);
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
}
|
}
|
||||||
updateSettings();
|
updateSettings();
|
||||||
|
|
||||||
}, setTime: function(t){
|
}, setTimer: function(t){
|
||||||
settings.minutes = Math.max(0, t);
|
settings.minutes = Math.max(0, t);
|
||||||
settings.started = t > 0;
|
settings.started = t > 0;
|
||||||
updateSettings();
|
updateSettings();
|
||||||
|
|
Loading…
Reference in New Issue