fixed lint

This commit is contained in:
zjeffer 2023-07-16 15:18:18 +02:00
parent c85738574c
commit 62702a4878

View File

@ -190,9 +190,8 @@ auto waybar::modules::Backlight::update() -> void {
event_box_.show(); event_box_.show();
const uint8_t percent = const uint8_t percent =
best->get_max() == 0 ? 100 : round(best->get_actual() * 100.0f / best->get_max()); best->get_max() == 0 ? 100 : round(best->get_actual() * 100.0f / best->get_max());
std::string desc = std::string desc = fmt::format(fmt::runtime(format_), fmt::arg("percent", percent),
fmt::format(fmt::runtime(format_), fmt::arg("percent", percent), fmt::arg("icon", getIcon(percent)));
fmt::arg("icon", getIcon(percent)));
label_.set_markup(desc); label_.set_markup(desc);
getState(percent); getState(percent);
if (tooltipEnabled()) { if (tooltipEnabled()) {