From bf21be1bba8a29f68d38c814651fa5dec1a4e6e8 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 28 Nov 2021 12:08:52 +0100 Subject: [PATCH] fixed a bug with bar config --- src/config/ConfigManager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 3552759..02f7487 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -202,8 +202,10 @@ void parseBarLine(const std::string& line) { // Now check commands if (COMMAND == "module") { - parseModule(COMMAND, VALUE); + if (g_pWindowManager->statusBar) + parseModule(COMMAND, VALUE); } else { + // We need to parse those to let the main thread know e.g. the bar height configSetValueSafe("bar:" + COMMAND, VALUE); } } @@ -234,8 +236,7 @@ void parseLine(std::string& line) { } if (ConfigManager::isBar) { - if (g_pWindowManager->statusBar) - parseBarLine(line); + parseBarLine(line); return; }