fixed a bug with bar config

This commit is contained in:
vaxerski 2021-11-28 12:08:52 +01:00
parent 05fb292c92
commit bf21be1bba

View file

@ -202,8 +202,10 @@ void parseBarLine(const std::string& line) {
// Now check commands // Now check commands
if (COMMAND == "module") { if (COMMAND == "module") {
parseModule(COMMAND, VALUE); if (g_pWindowManager->statusBar)
parseModule(COMMAND, VALUE);
} else { } else {
// We need to parse those to let the main thread know e.g. the bar height
configSetValueSafe("bar:" + COMMAND, VALUE); configSetValueSafe("bar:" + COMMAND, VALUE);
} }
} }
@ -234,8 +236,7 @@ void parseLine(std::string& line) {
} }
if (ConfigManager::isBar) { if (ConfigManager::isBar) {
if (g_pWindowManager->statusBar) parseBarLine(line);
parseBarLine(line);
return; return;
} }