feat: optimize config feedback

This commit is contained in:
GyDi
2022-09-26 20:46:29 +08:00
committed by GitHub
parent 29fe9d973c
commit a75706f329
7 changed files with 45 additions and 11 deletions

View File

@@ -40,6 +40,12 @@ impl Handle {
}
}
pub fn notice_message(&self, status: String, msg: String) {
if let Some(window) = self.get_window() {
log_if_err!(window.emit("verge://notice-message", (status, msg)));
}
}
// update system tray state (clash config)
pub fn update_systray_clash(&self) -> Result<()> {
if self.app_handle.is_none() {