revert: restore idle fix

pull/364/head
Alex 2019-05-26 20:09:05 +02:00
parent d4ace4b4d8
commit 070619fa34
1 changed files with 8 additions and 5 deletions

View File

@ -286,12 +286,15 @@ 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());
}
});
});
} catch (const std::exception& e) {
spdlog::warn("module {}: {}", name.asString(), e.what());
}