fix a config sync bug
This commit is contained in:
parent
89035b5223
commit
953d2e6e09
@ -487,6 +487,7 @@ async fn sync_and_watch_config_dir() {
|
|||||||
Data::SyncConfig(Some(configs)) => {
|
Data::SyncConfig(Some(configs)) => {
|
||||||
let (config, config2) = *configs;
|
let (config, config2) = *configs;
|
||||||
let _chk = crate::ipc::CheckIfRestart::new();
|
let _chk = crate::ipc::CheckIfRestart::new();
|
||||||
|
if !config.is_empty() {
|
||||||
if cfg0.0 != config {
|
if cfg0.0 != config {
|
||||||
cfg0.0 = config.clone();
|
cfg0.0 = config.clone();
|
||||||
Config::set(config);
|
Config::set(config);
|
||||||
@ -497,6 +498,7 @@ async fn sync_and_watch_config_dir() {
|
|||||||
Config2::set(config2);
|
Config2::set(config2);
|
||||||
log::info!("sync config2 from root");
|
log::info!("sync config2 from root");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
synced = true;
|
synced = true;
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user