mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 00:36:14 +00:00
applicationShouldOpenUntitledFile
This commit is contained in:
1 parent
3e63df1d59
commit
aac12c2b21
6 files changed
+47
-26
No files matched your search
@@ -39,6 +39,15 @@ pub extern "C" fn rustdesk_core_main() -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
#[no_mangle]
|
||||
pub extern "C" fn handle_applicationShouldOpenUntitledFile() {
|
||||
hbb_common::log::debug!("icon clicked on finder");
|
||||
if std::env::args().nth(1) == Some("--server".to_owned()) {
|
||||
crate::platform::macos::check_main_window();
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
#[no_mangle]
|
||||
pub extern "C" fn rustdesk_core_main_args(args_len: *mut c_int) -> *mut *mut c_char {
|
||||
|
||||
Reference in new issue
Block a user