mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 21:35:58 +01:00
fixed a bug with bar config
This commit is contained in:
parent
05fb292c92
commit
bf21be1bba
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue