windows specific session, fix sciter empty file directory or wrong home (#7189)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2024-02-19 17:08:15 +08:00 committed by GitHub
parent 58ddac63d2
commit 9a1fd1aa4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -1309,6 +1309,7 @@ impl Connection {
&& crate::platform::is_share_rdp()
&& raii::AuthedConnID::remote_and_file_conn_count() == 1
&& sessions.len() > 1
&& sessions.iter().any(|e| e.sid == current_sid)
&& (get_version_number(&self.lr.version) > get_version_number("1.2.4")
|| self.lr.option.support_windows_specific_session == BoolOption::Yes.into())
{

View File

@ -1269,6 +1269,14 @@ impl<T: InvokeUiSession> Session<T> {
self.on_error(
"No active console user logged on, please connect and logon first.",
);
} else {
#[cfg(not(feature = "flutter"))]
{
let remote_dir = self.get_option("remote_dir".to_string());
let show_hidden =
!self.get_option("remote_show_hidden".to_string()).is_empty();
self.read_remote_dir(remote_dir, show_hidden);
}
}
} else {
self.msgbox(