diff --git a/crates/clash-verge-i18n/locales/ar.yml b/crates/clash-verge-i18n/locales/ar.yml index c267deedd..0441ea1be 100644 --- a/crates/clash-verge-i18n/locales/ar.yml +++ b/crates/clash-verge-i18n/locales/ar.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: على وشك الخروج body: Clash Verge على وشك الخروج. - appHidden: - title: تم إخفاء التطبيق - body: Clash Verge يعمل في الخلفية. updateReady: title: Clash Verge Update body: A new version (v{version}) has been downloaded and is ready to install. diff --git a/crates/clash-verge-i18n/locales/de.yml b/crates/clash-verge-i18n/locales/de.yml index 5d6d8077b..9396f4a49 100644 --- a/crates/clash-verge-i18n/locales/de.yml +++ b/crates/clash-verge-i18n/locales/de.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: Beenden steht bevor body: Clash Verge wird gleich beendet. - appHidden: - title: Anwendung ausgeblendet - body: Clash Verge läuft im Hintergrund. updateReady: title: Clash Verge Update body: A new version (v{version}) has been downloaded and is ready to install. diff --git a/crates/clash-verge-i18n/locales/en.yml b/crates/clash-verge-i18n/locales/en.yml index c028f0a37..4a32fdc65 100644 --- a/crates/clash-verge-i18n/locales/en.yml +++ b/crates/clash-verge-i18n/locales/en.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: About to Exit body: Clash Verge is about to exit. - appHidden: - title: Application Hidden - body: Clash Verge is running in the background. updateReady: title: Clash Verge Update body: A new version (v{version}) has been downloaded and is ready to install. diff --git a/crates/clash-verge-i18n/locales/es.yml b/crates/clash-verge-i18n/locales/es.yml index 213e8cfca..87f115333 100644 --- a/crates/clash-verge-i18n/locales/es.yml +++ b/crates/clash-verge-i18n/locales/es.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: A punto de salir body: Clash Verge está a punto de salir. - appHidden: - title: Aplicación oculta - body: Clash Verge se está ejecutando en segundo plano. updateReady: title: Clash Verge Update body: A new version (v{version}) has been downloaded and is ready to install. diff --git a/crates/clash-verge-i18n/locales/fa.yml b/crates/clash-verge-i18n/locales/fa.yml index f13f7bdb8..8c538a4a7 100644 --- a/crates/clash-verge-i18n/locales/fa.yml +++ b/crates/clash-verge-i18n/locales/fa.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: در آستانه خروج body: Clash Verge در آستانه خروج است. - appHidden: - title: برنامه پنهان شد - body: Clash Verge در پس‌زمینه در حال اجراست. updateReady: title: Clash Verge Update body: A new version (v{version}) has been downloaded and is ready to install. diff --git a/crates/clash-verge-i18n/locales/id.yml b/crates/clash-verge-i18n/locales/id.yml index 84e3b2dec..00c4788be 100644 --- a/crates/clash-verge-i18n/locales/id.yml +++ b/crates/clash-verge-i18n/locales/id.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: Akan Keluar body: Clash Verge akan keluar. - appHidden: - title: Aplikasi Disembunyikan - body: Clash Verge berjalan di latar belakang. updateReady: title: Clash Verge Update body: A new version (v{version}) has been downloaded and is ready to install. diff --git a/crates/clash-verge-i18n/locales/jp.yml b/crates/clash-verge-i18n/locales/jp.yml index 36dbf276b..eea0c41d1 100644 --- a/crates/clash-verge-i18n/locales/jp.yml +++ b/crates/clash-verge-i18n/locales/jp.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: 終了間近 body: Clash Verge はまもなく終了します。 - appHidden: - title: アプリが非表示 - body: Clash Verge はバックグラウンドで実行中です。 updateReady: title: Clash Verge Update body: A new version (v{version}) has been downloaded and is ready to install. diff --git a/crates/clash-verge-i18n/locales/ko.yml b/crates/clash-verge-i18n/locales/ko.yml index daf96ba4a..7166e8c72 100644 --- a/crates/clash-verge-i18n/locales/ko.yml +++ b/crates/clash-verge-i18n/locales/ko.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: 곧 종료 body: Clash Verge가 곧 종료됩니다. - appHidden: - title: 앱이 숨겨짐 - body: Clash Verge가 백그라운드에서 실행 중입니다. updateReady: title: Clash Verge Update body: A new version (v{version}) has been downloaded and is ready to install. diff --git a/crates/clash-verge-i18n/locales/ru.yml b/crates/clash-verge-i18n/locales/ru.yml index b2699cf6f..2c931fa1d 100644 --- a/crates/clash-verge-i18n/locales/ru.yml +++ b/crates/clash-verge-i18n/locales/ru.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: Скорый выход body: Clash Verge скоро завершит работу. - appHidden: - title: Приложение скрыто - body: Clash Verge работает в фоновом режиме. updateReady: title: Обновление Clash Verge body: Новая версия (v{version}) скачана и готова к установке. diff --git a/crates/clash-verge-i18n/locales/tr.yml b/crates/clash-verge-i18n/locales/tr.yml index 0c9c113b3..cf3c666a4 100644 --- a/crates/clash-verge-i18n/locales/tr.yml +++ b/crates/clash-verge-i18n/locales/tr.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: Çıkış Yapılmak Üzere body: Clash Verge kapanmak üzere. - appHidden: - title: Uygulama Gizlendi - body: Clash Verge arka planda çalışıyor. updateReady: title: Clash Verge Güncellemesi body: Yeni bir sürüm (v{version}) indirildi ve kurulmaya hazır. diff --git a/crates/clash-verge-i18n/locales/tt.yml b/crates/clash-verge-i18n/locales/tt.yml index b7a5ef0f6..4067dfdd7 100644 --- a/crates/clash-verge-i18n/locales/tt.yml +++ b/crates/clash-verge-i18n/locales/tt.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: Чыгар алдыннан body: Clash Verge чыгарга җыена. - appHidden: - title: Кушымта яшерелде - body: Clash Verge фон режимында эшли. updateReady: title: Clash Verge Update body: A new version (v{version}) has been downloaded and is ready to install. diff --git a/crates/clash-verge-i18n/locales/zh.yml b/crates/clash-verge-i18n/locales/zh.yml index 49c1203ce..8774cbefb 100644 --- a/crates/clash-verge-i18n/locales/zh.yml +++ b/crates/clash-verge-i18n/locales/zh.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: 即将退出 body: Clash Verge 即将退出。 - appHidden: - title: 应用已隐藏 - body: Clash Verge 正在后台运行。 updateReady: title: Clash Verge 更新 body: 新版本 (v{version}) 已下载完成,是否立即安装? diff --git a/crates/clash-verge-i18n/locales/zhtw.yml b/crates/clash-verge-i18n/locales/zhtw.yml index 6ea5d9c59..da73ba929 100644 --- a/crates/clash-verge-i18n/locales/zhtw.yml +++ b/crates/clash-verge-i18n/locales/zhtw.yml @@ -29,9 +29,6 @@ notifications: appQuit: title: 即將退出 body: Clash Verge 即將退出。 - appHidden: - title: 應用已隱藏 - body: Clash Verge 正在背景執行。 updateReady: title: Clash Verge 更新 body: 新版本(v{version})已下載完成,是否立即安裝? diff --git a/src-tauri/src/core/hotkey.rs b/src-tauri/src/core/hotkey.rs index 520094015..2917d5fd6 100755 --- a/src-tauri/src/core/hotkey.rs +++ b/src-tauri/src/core/hotkey.rs @@ -200,7 +200,6 @@ impl Hotkey { HotkeyFunction::Hide => { AsyncHandler::spawn(async move || { feat::hide().await; - notify_event(NotificationEvent::AppHidden).await; }); } } diff --git a/src-tauri/src/utils/notification.rs b/src-tauri/src/utils/notification.rs index 0dc3ea213..de87fd749 100644 --- a/src-tauri/src/utils/notification.rs +++ b/src-tauri/src/utils/notification.rs @@ -18,8 +18,6 @@ pub enum NotificationEvent<'a> { LightweightModeEntered, ProfilesReactivated, AppQuit, - #[cfg(target_os = "macos")] - AppHidden, } /// Whether no app window can currently show the failure. @@ -95,11 +93,5 @@ pub async fn notify_event<'a>(event: NotificationEvent<'a>) { let body = clash_verge_i18n::t!("notifications.appQuit.body"); notify(title, body); } - #[cfg(target_os = "macos")] - NotificationEvent::AppHidden => { - let title = clash_verge_i18n::t!("notifications.appHidden.title"); - let body = clash_verge_i18n::t!("notifications.appHidden.body"); - notify(title, body); - } } }