fix: unused code on non-MacOS platform

This commit is contained in:
wonfen 2025-03-28 05:58:02 +08:00
parent b7e01aefb4
commit 4a47c5bb6f

View File

@ -135,6 +135,7 @@ pub fn resolve_reset() {
tauri::async_runtime::block_on(async move {
#[cfg(target_os = "macos")]
logging!(info, Type::Tray, true, "Unsubscribing from traffic updates");
#[cfg(target_os = "macos")]
tray::Tray::global().unsubscribe_traffic();
logging_error!(