fix hide docker (can not call too early)

This commit is contained in:
rustdesk
2023-02-01 17:11:24 +08:00
parent 7e92442632
commit 5149b90e53
6 changed files with 440 additions and 260 deletions

View File

@@ -247,8 +247,6 @@ pub fn core_main() -> Option<Vec<String>> {
#[cfg(feature = "flutter")]
crate::flutter::connection_manager::start_listen_ipc_thread();
crate::ui_interface::start_option_status_sync();
#[cfg(target_os = "macos")]
crate::platform::macos::hide_dock();
}
}
//_async_logger_holder.map(|x| x.flush());

View File

@@ -1241,6 +1241,12 @@ pub fn main_is_login_wayland() -> SyncReturn<bool> {
SyncReturn(is_login_wayland())
}
pub fn main_hide_docker() -> SyncReturn<bool> {
#[cfg(target_os = "macos")]
crate::platform::macos::hide_dock();
SyncReturn(true)
}
#[cfg(target_os = "android")]
pub mod server_side {
use jni::{