From e80cccafe128d8d745c04f186ea547efd6791864 Mon Sep 17 00:00:00 2001 From: Kasper Date: Sat, 30 Aug 2025 11:18:14 +0200 Subject: [PATCH] Remove manual macOS app hiding --- CHANGELOG.md | 3 +++ src-tauri/src/lib.rs | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9708a59..26a57aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## Next +- Remove old YouTube Email Notifier migration + ## 1.7.1 - 2024 Jan 28 - Fix selection being created on videos page refresh diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 3c86ddc..6299e03 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -165,13 +165,8 @@ pub async fn run() { tauri::WindowEvent::CloseRequested { api: _api, .. } => { #[cfg(target_os = "macos")] { - // hide the application - // manual for now (PR https://github.com/tauri-apps/tauri/pull/3689) _api.prevent_close(); - use objc::*; - let cls = objc::runtime::Class::get("NSApplication").unwrap(); - let app: cocoa::base::id = unsafe { msg_send![cls, sharedApplication] }; - unsafe { msg_send![app, hide: 0] } + _app_handle.hide().unwrap(); } } _ => {} -- 2.51.2