mirror of
https://github.com/rad4day/Waybar.git
synced 2026-01-01 09:32:31 +01:00
Fix reloading config
Fully clear the configuration before reloading, so that when the config is read and merged in there are no existing values which mergeConfig refuses to overwrite.
This commit is contained in:
@@ -162,6 +162,7 @@ void Config::load(const std::string &config) {
|
||||
}
|
||||
config_file_ = file.value();
|
||||
spdlog::info("Using configuration file {}", config_file_);
|
||||
config_ = Json::Value();
|
||||
setupConfig(config_, config_file_, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user