mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 23:19:02 +08:00
macos remove unused code
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
7ba3dce006
commit
0491950e01
@ -16,7 +16,7 @@ struct AlertResult {
|
||||
button: String,
|
||||
}
|
||||
|
||||
/// Alert dialog, return the clicked button value.
|
||||
/// Firstly run the specified app, then alert a dialog. Return the clicked button value.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
|
@ -40,25 +40,6 @@ extern "C" fn breakdown_signal_handler(sig: i32) {
|
||||
true,
|
||||
)
|
||||
.ok();
|
||||
// Ignore alert info for now.
|
||||
// #[cfg(target_os = "macos")]
|
||||
// {
|
||||
// use std::sync::mpsc::channel;
|
||||
// use std::time::Duration;
|
||||
// let (tx, rx) = channel();
|
||||
// std::thread::spawn(move || {
|
||||
// macos::alert(
|
||||
// "System Preferences".to_owned(),
|
||||
// "critical".to_owned(),
|
||||
// "RustDesk Crashed".to_owned(),
|
||||
// format!("Got signal {} and exit.{}", sig, info),
|
||||
// ["Ok".to_owned()].to_vec(),
|
||||
// )
|
||||
// .ok();
|
||||
// let _ = tx.send(());
|
||||
// });
|
||||
// let _ = rx.recv_timeout(Duration::from_millis(1_000));
|
||||
// }
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user