fix: tpyo

This commit is contained in:
Alex 2024-01-31 22:59:09 +01:00
parent 6dcae2cade
commit f1016322b9
1 changed files with 4 additions and 4 deletions

View File

@ -270,11 +270,11 @@ int waybar::Client::main(int argc, char *argv[]) {
setupCss(css_file); setupCss(css_file);
}); });
auto config = config.getConfig(); auto m_config = config.getConfig();
if (config.isObject() && config["reload_style_on_change"].asBool()) { if (m_config.isObject() && m_config["reload_style_on_change"].asBool()) {
m_cssReloadHelper->monitorChanges(); m_cssReloadHelper->monitorChanges();
} else if (config.isArray()) { } else if (m_config.isArray()) {
for (const auto &conf : config) { for (const auto &conf : m_config) {
if (conf["reload_style_on_change"].asBool()) { if (conf["reload_style_on_change"].asBool()) {
m_cssReloadHelper->monitorChanges(); m_cssReloadHelper->monitorChanges();
break; break;