Fix bug with config reloading
The reloaded config was not used immediately.
This commit is contained in:
parent
ae470bf68b
commit
8af19c3f0c
|
@ -133,9 +133,9 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box<Error>> {
|
|||
let config_updated = config_monitor.as_ref()
|
||||
.and_then(|monitor| monitor.pending_config())
|
||||
.map(|new_config| {
|
||||
config = new_config;
|
||||
display.update_config(&config);
|
||||
processor.update_config(&config);
|
||||
config = new_config;
|
||||
true
|
||||
}).unwrap_or(false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue