mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: remove old stuff
This commit is contained in:
parent
b40cdcb5bd
commit
687c50dc13
@ -175,11 +175,6 @@ auto waybar::modules::Backlight::update() -> void {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run user-provided update handler if configured
|
|
||||||
if (config_["on-update"].isString()) {
|
|
||||||
AModule::update();
|
|
||||||
}
|
|
||||||
|
|
||||||
const auto percent = best->get_max() == 0 ? 100 : best->get_actual() * 100 / best->get_max();
|
const auto percent = best->get_max() == 0 ? 100 : best->get_actual() * 100 / best->get_max();
|
||||||
label_.set_markup(fmt::format(
|
label_.set_markup(fmt::format(
|
||||||
format_, fmt::arg("percent", std::to_string(percent)), fmt::arg("icon", getIcon(percent))));
|
format_, fmt::arg("percent", std::to_string(percent)), fmt::arg("icon", getIcon(percent))));
|
||||||
|
Loading…
Reference in New Issue
Block a user