calendar: add shift_reset action

This commit is contained in:
Jan-Peter Dhallé
2024-04-15 21:59:35 +02:00
parent ddacb111a9
commit fb88c06d78
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;