mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
Merge pull request #2874 from Alexays/fix-reload-style
fix: reload style
This commit is contained in:
@ -270,9 +270,18 @@ int waybar::Client::main(int argc, char *argv[]) {
|
||||
setupCss(css_file);
|
||||
});
|
||||
|
||||
if (config.getConfig()["reload_style_on_change"].asBool()) {
|
||||
auto m_config = config.getConfig();
|
||||
if (m_config.isObject() && m_config["reload_style_on_change"].asBool()) {
|
||||
m_cssReloadHelper->monitorChanges();
|
||||
} else if (m_config.isArray()) {
|
||||
for (const auto &conf : m_config) {
|
||||
if (conf["reload_style_on_change"].asBool()) {
|
||||
m_cssReloadHelper->monitorChanges();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bindInterfaces();
|
||||
gtk_app->hold();
|
||||
gtk_app->run();
|
||||
|
Reference in New Issue
Block a user