mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: remove fix workaround
This commit is contained in:
parent
05f796158b
commit
71a9a75aad
@ -287,15 +287,12 @@ 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] {
|
||||||
// Fix https://github.com/Alexays/Waybar/issues/320, proper way?
|
|
||||||
Glib::signal_idle().connect_once([module, &name] {
|
|
||||||
try {
|
try {
|
||||||
module->update();
|
module->update();
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
spdlog::error("{}: {}", name.asString(), e.what());
|
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…
x
Reference in New Issue
Block a user