mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
refactor handle_applicationShouldOpenUntitledFile
This commit is contained in:
@@ -42,11 +42,7 @@ pub extern "C" fn rustdesk_core_main() -> bool {
|
||||
#[cfg(target_os = "macos")]
|
||||
#[no_mangle]
|
||||
pub extern "C" fn handle_applicationShouldOpenUntitledFile() {
|
||||
hbb_common::log::debug!("icon clicked on finder");
|
||||
let x = std::env::args().nth(1).unwrap_or_default();
|
||||
if x == "--server" || x == "--cm" {
|
||||
crate::platform::macos::check_main_window();
|
||||
}
|
||||
crate::platform::macos::handle_applicationShouldOpenUntitledFile();
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
|
||||
Reference in New Issue
Block a user