MCPcopy Create free account
hub / github.com/Alexays/Waybar / tz_up

Method tz_up

src/modules/clock.cpp:490–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489void waybar::modules::Clock::cldShift_reset() { cldCurrShift_ = (months)0; }
490void waybar::modules::Clock::tz_up() {
491 const auto tzSize{tzList_.size()};
492 if (tzSize == 1) return;
493 size_t newIdx{tzCurrIdx_ + 1lu};
494 tzCurrIdx_ = (newIdx == tzSize) ? 0 : newIdx;
495}
496void waybar::modules::Clock::tz_down() {
497 const auto tzSize{tzList_.size()};
498 if (tzSize == 1) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected