fix: lint

This commit is contained in:
Alex 2022-05-04 17:29:08 +02:00
parent eec0a8255f
commit 7bbf7c99a3
2 changed files with 15 additions and 13 deletions

View File

@ -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