Merge pull request #3155 from drendog/master
This commit is contained in:
commit
5ce5ceba62
|
@ -152,6 +152,8 @@ auto waybar::modules::Clock::update() -> void {
|
||||||
std::regex_replace(tlpText_, std::regex("\\{" + kCldPlaceholder + "\\}"), cldText_);
|
std::regex_replace(tlpText_, std::regex("\\{" + kCldPlaceholder + "\\}"), cldText_);
|
||||||
tlpText_ =
|
tlpText_ =
|
||||||
std::regex_replace(tlpText_, std::regex("\\{" + kOrdPlaceholder + "\\}"), ordText_);
|
std::regex_replace(tlpText_, std::regex("\\{" + kOrdPlaceholder + "\\}"), ordText_);
|
||||||
|
} else {
|
||||||
|
tlpText_ = tlpFmt_;
|
||||||
}
|
}
|
||||||
|
|
||||||
tlpText_ = fmt_lib::vformat(locale_, tlpText_, fmt_lib::make_format_args(shiftedNow));
|
tlpText_ = fmt_lib::vformat(locale_, tlpText_, fmt_lib::make_format_args(shiftedNow));
|
||||||
|
|
Loading…
Reference in New Issue