no duplidate trays

This commit is contained in:
rustdesk committed 2023-06-09 22:33:38 +08:00
1 parent 644da37a4f
commit 53431eb162
3 files changed
+40 -14

No files matched your search

+3 -1
View File
@@ -160,7 +160,9 @@ pub fn core_main() -> Option<Vec<String>> {
return None;
}
} else if args[0] == "--tray" {
crate::tray::start_tray();
if !crate::check_process("--tray", true) {
crate::tray::start_tray();
}
return None;
} else if args[0] == "--service" {
log::info!("start --service");