Merge pull request #3142 from janpeterd/master

calendar: add shift_reset action
This commit is contained in:
Alexis Rouillard
2024-04-15 22:18:17 +02:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@ -423,6 +423,9 @@ void waybar::modules::Clock::cldShift_up() {
void waybar::modules::Clock::cldShift_down() {
cldCurrShift_ -= (months)((cldMode_ == CldMode::YEAR) ? 12 : 1) * cldShift_;
}
void waybar::modules::Clock::cldShift_reset() {
cldCurrShift_ = (months)0;
}
void waybar::modules::Clock::tz_up() {
const auto tzSize{tzList_.size()};
if (tzSize == 1) return;