fix: update clock tooltip without placeholders scenario

master
drendog 2024-04-21 18:02:26 +02:00
parent 87cc40e6e2
commit 2123995b03
1 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,8 @@ auto waybar::modules::Clock::update() -> void {
std::regex_replace(tlpText_, std::regex("\\{" + kCldPlaceholder + "\\}"), cldText_);
tlpText_ =
std::regex_replace(tlpText_, std::regex("\\{" + kOrdPlaceholder + "\\}"), ordText_);
} else {
tlpText_ = tlpFmt_;
}
tlpText_ = fmt_lib::vformat(locale_, tlpText_, fmt_lib::make_format_args(shiftedNow));