From de4389977b20e6d9b0d2a934943f4d17fe7b16c7 Mon Sep 17 00:00:00 2001 From: csf Date: Wed, 15 Jun 2022 21:29:56 +0800 Subject: [PATCH] https://github.com/rustdesk/rustdesk/issues/775 --- src/mobile.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mobile.rs b/src/mobile.rs index fe02513a0..5b9651e54 100644 --- a/src/mobile.rs +++ b/src/mobile.rs @@ -436,7 +436,12 @@ impl Interface for Session { let mut displays = Vec::new(); let mut current = pi.current_display as usize; - if !lc.is_file_transfer { + if lc.is_file_transfer { + if pi.username.is_empty() { + self.msgbox("error", "Error", "No active console user logged on, please connect and logon first."); + return; + } + } else { if pi.displays.is_empty() { self.msgbox("error", "Remote Error", "No Display"); }