fix: lint
This commit is contained in:
parent
eec0a8255f
commit
7bbf7c99a3
|
@ -81,7 +81,8 @@ bool waybar::modules::IdleInhibitor::handleToggle(GdkEventButton* const& e) {
|
|||
auto timeoutMins = config_["timeout"].asDouble();
|
||||
int timeoutSecs = timeoutMins * 60;
|
||||
|
||||
timeout_ = Glib::signal_timeout().connect_seconds([]() {
|
||||
timeout_ = Glib::signal_timeout().connect_seconds(
|
||||
[]() {
|
||||
/* intentionally not tied to a module instance lifetime
|
||||
* as the output with `this` can be disconnected
|
||||
*/
|
||||
|
@ -92,7 +93,8 @@ bool waybar::modules::IdleInhibitor::handleToggle(GdkEventButton* const& e) {
|
|||
}
|
||||
/* disconnect */
|
||||
return false;
|
||||
}, timeoutSecs);
|
||||
},
|
||||
timeoutSecs);
|
||||
}
|
||||
|
||||
// Make all other idle inhibitor modules update
|
||||
|
|
Loading…
Reference in New Issue