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

@@ -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::{