mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor(backlight): fix linter
This commit is contained in:
parent
e8c4b85328
commit
973aa09f8b
@ -334,7 +334,9 @@ bool waybar::modules::Backlight::handleScroll(GdkEventScroll *e) {
|
|||||||
new_value = std::clamp(new_value, 0, best->get_max());
|
new_value = std::clamp(new_value, 0, best->get_max());
|
||||||
|
|
||||||
// Set the new value
|
// Set the new value
|
||||||
auto call_args = Glib::VariantContainerBase(g_variant_new("(ssu)", "backlight", std::string(best->name()).c_str(), new_value));
|
auto call_args = Glib::VariantContainerBase(
|
||||||
|
g_variant_new("(ssu)", "backlight", std::string(best->name()).c_str(), new_value));
|
||||||
|
|
||||||
login_proxy_->call_sync("SetBrightness", call_args);
|
login_proxy_->call_sync("SetBrightness", call_args);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user