diff options
| author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-07-14 14:34:27 -0500 | 
|---|---|---|
| committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-07-14 14:34:27 -0500 | 
| commit | 14ea8103403cde1a0055ded2dcea9033f2337b76 (patch) | |
| tree | 9fe5ad19a54ab3906d314c80e43e686b2dd0ef97 /src/controllers | |
| parent | 8633fe4774a83f90969e965c02b35e531d2ac6df (diff) | |
| download | freqtimer-web-main.tar.xz freqtimer-web-main.zip  | |
+ Added authorship, copyright notice, and link to the code
+ Increased size of the +1 buttons
+ Changed layout so the +1 buttons would be prioritized
+ Adjusted margins to fit content within the iOS window
Diffstat (limited to 'src/controllers')
| -rw-r--r-- | src/controllers/timer_view.cpp | 17 | 
1 files changed, 8 insertions, 9 deletions
diff --git a/src/controllers/timer_view.cpp b/src/controllers/timer_view.cpp index 03e8bb5..13d6960 100644 --- a/src/controllers/timer_view.cpp +++ b/src/controllers/timer_view.cpp @@ -101,7 +101,7 @@ class TimerController {  	void handle_inc_time(uint32_t amount) {  		_timer.increment_preset_ms(amount * 1000); - +		_clear_counters_and_alarm();  		_update_labels();  	} @@ -190,22 +190,21 @@ class TimerController {  		_view.set_clear_reset_button_disabled(_timer.running());  	} -	void clear() { -		_timer.clear(); - +	void _clear_counters_and_alarm() {  		for(FreqCounter & counter : _counters)  			counter.reset();  		_alarm_sound_triggered = false;  	} +	void clear() { +		_timer.clear(); +		_clear_counters_and_alarm(); +	} +  	void reset() {  		_timer.reset(); - -		for(FreqCounter & counter : _counters) -			counter.reset(); - -		_alarm_sound_triggered = false; +		_clear_counters_and_alarm();  	}  };  | 
