fix windows

This commit is contained in:
csf 2022-05-25 21:07:24 -07:00
parent 7955381655
commit 35e17f0ef9

View File

@ -321,7 +321,7 @@ pub fn is_installed() -> bool {
pub fn is_rdp_service_open() -> bool { pub fn is_rdp_service_open() -> bool {
#[cfg(windows)] #[cfg(windows)]
return self.is_installed() && crate::platform::windows::is_rdp_service_open(); return is_installed() && crate::platform::windows::is_rdp_service_open();
#[cfg(not(windows))] #[cfg(not(windows))]
return false; return false;
} }
@ -657,7 +657,7 @@ pub fn start(args: &mut [String]) {
} }
#[cfg(windows)] #[cfg(windows)]
if args.len() > 0 && args[0] == "--tray" { if args.len() > 0 && args[0] == "--tray" {
let options = check_connect_status(false).1; let options = OPTIONS.clone();
crate::tray::start_tray(options); crate::tray::start_tray(options);
return; return;
} }