revert: restore idle fix
parent
d4ace4b4d8
commit
070619fa34
13
src/bar.cpp
13
src/bar.cpp
|
@ -286,11 +286,14 @@ void waybar::Bar::getModules(const Factory& factory, const std::string& pos) {
|
||||||
modules_right_.emplace_back(module);
|
modules_right_.emplace_back(module);
|
||||||
}
|
}
|
||||||
module->dp.connect([module, &name] {
|
module->dp.connect([module, &name] {
|
||||||
try {
|
// Fix https://github.com/Alexays/Waybar/issues/320, proper way?
|
||||||
module->update();
|
Glib::signal_idle().connect_once([module, &name] {
|
||||||
} catch (const std::exception& e) {
|
try {
|
||||||
spdlog::error("{}: {}", name.asString(), e.what());
|
module->update();
|
||||||
}
|
} catch (const std::exception& e) {
|
||||||
|
spdlog::error("{}: {}", name.asString(), e.what());
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
spdlog::warn("module {}: {}", name.asString(), e.what());
|
spdlog::warn("module {}: {}", name.asString(), e.what());
|
||||||
|
|
Loading…
Reference in New Issue