From 71a9a75aad1af6be70205db4257b83e0f42b003e Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 16 Jun 2019 15:14:31 +0200 Subject: [PATCH] refactor: remove fix workaround --- src/bar.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/bar.cpp b/src/bar.cpp index c2d6155..4d02148 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -287,14 +287,11 @@ void waybar::Bar::getModules(const Factory& factory, const std::string& pos) { modules_right_.emplace_back(module); } module->dp.connect([module, &name] { - // Fix https://github.com/Alexays/Waybar/issues/320, proper way? - Glib::signal_idle().connect_once([module, &name] { - try { - module->update(); - } catch (const std::exception& e) { - spdlog::error("{}: {}", name.asString(), e.what()); - } - }); + try { + module->update(); + } catch (const std::exception& e) { + spdlog::error("{}: {}", name.asString(), e.what()); + } }); } catch (const std::exception& e) { spdlog::warn("module {}: {}", name.asString(), e.what());