fix: restart clash should update something

This commit is contained in:
GyDi
2022-01-21 00:29:33 +08:00
parent 2577cbe1ac
commit 62ff1421e7
3 changed files with 18 additions and 3 deletions

View File

@@ -49,6 +49,8 @@ fn main() -> std::io::Result<()> {
if let Err(err) = profiles.activate(clash.info.clone()) {
log::error!("{}", err);
}
let window = app_handle.get_window("main").unwrap();
window.emit("restart_clash", "yes").unwrap();
}
Err(err) => log::error!("{}", err),
}