Commit Graph
4 Commits
Author SHA1 Message Date
Sergey Mishin c5e4d26320 Fix working without timezone 2021-10-05 10:20:06 +00:00
Sergey Mishin d8bc6c92bb Fix style and spelling 2021-10-05 09:55:30 +00:00
Sergey Mishin 110c66dd32 Refactor Clock: generalize multi timezones and single timezone cases
After this refactoring:
1. Timezones parses only once on start and the we refer to saved values. All time_zone.isString() checks gone to the constructor.
2. Single timezone case handling as case of multi timezoned logic.
3. Scroll event seems more clear now.
4. Tooltip template parses on start to check if there calendar placeholder or not. To do not calculate calendar_text() if not necessary.
2021-10-03 16:57:55 +00:00
Sergey Mishin 174db444d6 Fix Clock crash on empty string in timezones field
Also fixed timezones behavior: now waybar starting with the first timezone in timezones list and falling back to timezone field only if timezones omit or has no elements.
2021-10-03 03:27:54 +00:00