Skip to content

Commit 773b1d4

Browse files
committed
Default value for cldYearShift_ = 1900/01/01
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
1 parent 21af48f commit 773b1d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/modules/clock.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ waybar::modules::Clock::Clock(const std::string& id, const Json::Value& config)
2424
m_tlpFmt_{(config_["tooltip-format"].isString()) ? config_["tooltip-format"].asString() : ""},
2525
m_tooltip_{new Gtk::Label()},
2626
cldInTooltip_{m_tlpFmt_.find("{" + kCldPlaceholder + "}") != std::string::npos},
27+
cldYearShift_{1900y / 1 / 1},
2728
tzInTooltip_{m_tlpFmt_.find("{" + kTZPlaceholder + "}") != std::string::npos},
2829
tzCurrIdx_{0},
2930
ordInTooltip_{m_tlpFmt_.find("{" + kOrdPlaceholder + "}") != std::string::npos} {

0 commit comments

Comments
 (0)