Fix formatting
This commit is contained in:
parent
254111ff91
commit
a3e7031fe2
|
@ -170,9 +170,9 @@ auto waybar::modules::Custom::update() -> void {
|
||||||
if (tooltipEnabled()) {
|
if (tooltipEnabled()) {
|
||||||
if (tooltip_format_enabled_) {
|
if (tooltip_format_enabled_) {
|
||||||
auto tooltip = config_["tooltip-format"].asString();
|
auto tooltip = config_["tooltip-format"].asString();
|
||||||
tooltip = fmt::format(fmt::runtime(tooltip), fmt::arg("text", text_),
|
tooltip = fmt::format(
|
||||||
fmt::arg("alt", alt_), fmt::arg("icon", getIcon(percentage_, alt_)),
|
fmt::runtime(tooltip), fmt::arg("text", text_), fmt::arg("alt", alt_),
|
||||||
fmt::arg("percentage", percentage_));
|
fmt::arg("icon", getIcon(percentage_, alt_)), fmt::arg("percentage", percentage_));
|
||||||
label_.set_tooltip_markup(tooltip);
|
label_.set_tooltip_markup(tooltip);
|
||||||
} else if (text_ == tooltip_) {
|
} else if (text_ == tooltip_) {
|
||||||
if (label_.get_tooltip_markup() != str) {
|
if (label_.get_tooltip_markup() != str) {
|
||||||
|
@ -202,8 +202,9 @@ auto waybar::modules::Custom::update() -> void {
|
||||||
if (std::strcmp(e.what(), "cannot switch from manual to automatic argument indexing") != 0)
|
if (std::strcmp(e.what(), "cannot switch from manual to automatic argument indexing") != 0)
|
||||||
throw;
|
throw;
|
||||||
|
|
||||||
throw fmt::format_error("mixing manual and automatic argument indexing is no longer supported; "
|
throw fmt::format_error(
|
||||||
"try replacing \"{}\" with \"{text}\" in your format specifier");
|
"mixing manual and automatic argument indexing is no longer supported; "
|
||||||
|
"try replacing \"{}\" with \"{text}\" in your format specifier");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Call parent update
|
// Call parent update
|
||||||
|
|
Loading…
Reference in New Issue