fix ci
This commit is contained in:
parent
2f432e941d
commit
025cdfa25b
@ -10,12 +10,15 @@ use std::time::Duration;
|
|||||||
|
|
||||||
pub fn start_tray() {
|
pub fn start_tray() {
|
||||||
if crate::ui_interface::get_builtin_option(hbb_common::config::keys::OPTION_HIDE_TRAY) == "Y" {
|
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();
|
crate::platform::macos::hide_dock();
|
||||||
loop {
|
loop {
|
||||||
std::thread::sleep(std::time::Duration::from_secs(1));
|
std::thread::sleep(std::time::Duration::from_secs(1));
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
#[cfg(not(target_os = "macos"))]
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user