timer-app icon indicating copy to clipboard operation
timer-app copied to clipboard

Keep the last sound alert in memory

Open silomia opened this issue 4 years ago • 3 comments

With the new version 1.6, we can choose different sound alerts. However, when we open a new timer, the sound alert number one is selected by default. I would like Timer to keep my last choice for the next time. In addition, for those who don't want any sound, this is also a good way (see request #19 ).

silomia avatar Jan 20 '21 15:01 silomia

Something to consider.

PRs welcome. Maybe @simongroenewolt, who implemented #107 ?

karbassi avatar Jan 20 '21 16:01 karbassi

BTW @simongroenewolt if you're up for working on this, it's just a few lines of code — when the user changes the sound, you set that sound number to a key in UserDefaults; then when a new timer is created, you read it back out from UserDefaults instead of always choosing the first sound. (The UserDefaults framework does all the hard work of persisting to disk between sessions etc.)

robinstewart avatar Jan 23 '21 23:01 robinstewart

@robinstewart Submit a PR! :)

karbassi avatar Jan 24 '21 01:01 karbassi