From 025cdfa25b0bb3d8a169b29829bc54eaf69eb70f Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 7 Aug 2024 01:19:29 +0800 Subject: [PATCH] fix ci --- src/tray.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tray.rs b/src/tray.rs index 4b30c7e08..39d650662 100644 --- a/src/tray.rs +++ b/src/tray.rs @@ -10,12 +10,15 @@ use std::time::Duration; pub fn start_tray() { if crate::ui_interface::get_builtin_option(hbb_common::config::keys::OPTION_HIDE_TRAY) == "Y" { - if cfg!(target_os = "macos") { + #[cfg(target_os = "macos")] + { crate::platform::macos::hide_dock(); loop { std::thread::sleep(std::time::Duration::from_secs(1)); } - } else { + } + #[cfg(not(target_os = "macos"))] + { return; } }