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(); } } _ => {}