macos tray

This commit is contained in:
rustdesk
2022-11-18 18:36:25 +08:00
parent 4a8578ee85
commit 03ae220f71
4 changed files with 36 additions and 34 deletions

View File

@@ -163,7 +163,8 @@ pub fn core_main() -> Option<Vec<String>> {
#[cfg(target_os = "macos")]
{
std::thread::spawn(move || crate::start_server(true));
// to-do: for flutter, starting tray not ready yet, or we can reuse sciter's tray implementation.
crate::tray::make_tray();
return None;
}
#[cfg(target_os = "linux")]
{