mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-17 18:21:02 +03:00
@@ -1089,7 +1089,7 @@ pub fn stop_global_event_stream(app_type: String) {
|
||||
let _ = GLOBAL_EVENT_STREAM.write().unwrap().remove(&app_type);
|
||||
}
|
||||
|
||||
fn msgbox_clipboard_(channel: &str, r#type: u32, msg: &str, details: &str) {
|
||||
fn msgbox_clipboard_(channel: &str, r#type: u32, msg: &str, details: &str) -> u32 {
|
||||
let msgtype = format!(
|
||||
"{}-nocancel-nook-hasclose",
|
||||
if r#type == 0 {
|
||||
@@ -1110,16 +1110,17 @@ fn msgbox_clipboard_(channel: &str, r#type: u32, msg: &str, details: &str) {
|
||||
])) {
|
||||
push_global_event(channel, event);
|
||||
}
|
||||
0
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn msgbox_clipboard_remote(r#type: u32, msg: &str, details: &str) {
|
||||
msgbox_clipboard_(APP_TYPE_DESKTOP_REMOTE, r#type, msg, details);
|
||||
pub fn msgbox_clipboard_remote(r#type: u32, msg: &str, details: &str) -> u32 {
|
||||
msgbox_clipboard_(APP_TYPE_DESKTOP_REMOTE, r#type, msg, details)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn msgbox_clipboard_cm(r#type: u32, msg: &str, details: &str) {
|
||||
msgbox_clipboard_(APP_TYPE_CM, r#type, msg, details);
|
||||
pub fn msgbox_clipboard_cm(r#type: u32, msg: &str, details: &str) -> u32 {
|
||||
msgbox_clipboard_(APP_TYPE_CM, r#type, msg, details)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
||||
Reference in New Issue
Block a user