feat: refresh ui when hotkey clicked

This commit is contained in:
GyDi
2022-09-18 15:50:03 +08:00
parent 09a1915ec6
commit 9686a7f9bf
3 changed files with 32 additions and 12 deletions

View File

@@ -202,6 +202,11 @@ impl Core {
handle.update_systray()?;
}
if patch.hotkeys.is_some() {
let mut hotkey = self.hotkey.lock();
hotkey.update(patch.hotkeys.unwrap())?;
}
Ok(())
}
@@ -225,6 +230,7 @@ impl Core {
// update tray
let handle = self.handle.lock();
handle.refresh_clash();
handle.update_systray_clash()?;
Ok(())