Store new config on application in :config-reload (#5431)

After changes in #5239, the loaded configuration wasn't stored,
resulting in a success message even if the instance kept the previous
configuration values.
This commit is contained in:
Lorenzo Albano 2023-01-08 16:30:38 +01:00 committed by GitHub
parent 0c51201ef2
commit b7ca0581d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -436,6 +436,8 @@ fn refresh_config(&mut self) {
.map_err(|err| anyhow::anyhow!("Failed to load config: {}", err))?;
self.refresh_language_config()?;
self.refresh_theme(&default_config)?;
// Store new config
self.config.store(Arc::new(default_config));
Ok(())
};