refactor(settings): read a silence-after of an hour or more as Never

A stored value of 60 minutes or more now reads as Never, which rings that
long anyway. The picker no longer shows both "60 minutes" and "Never" for
the same window. Also drops a redundant null check in TimerRingPolicy.

Refs #17
This commit is contained in:
makiolaj committed 2026-10-21 19:45:44 +02:00
1 parent 1689794da6
commit 6239ca0477
6 files changed
+12 -10

No files matched your search

+2 -2
View File
@@ -151,8 +151,8 @@ other unknown field.
are how long a ringing alarm or a finished timer keeps going before it stops on
its own: whole minutes, with `0` meaning "Never" (which still stops after an
hour). A file without them, from before the setting existed, imports as `10`,
the value it was made with. A value over 60 reads as 60 (which is what Never
rings for anyway); a negative one reads as the default, 10.
the value it was made with. A value of 60 or more reads as 0, "Never" (which
rings for that long anyway); a negative one reads as the default, 10.
Every numeric/duration value is clamped on *apply* using the same ranges and encoding
as the existing preference setters, never on parse.