Welcome messages

This commit is contained in:
ChristianVisintin
2020-12-04 14:00:23 +01:00
parent 809b3b8d99
commit 82a19dd089
4 changed files with 15 additions and 6 deletions

View File

@@ -38,7 +38,11 @@ impl FileTransferActivity {
self.params.username.clone(),
self.params.password.clone(),
) {
Ok(_) => {
Ok(welcome) => {
if let Some(banner) = welcome {
// Log welcome
self.log(LogLevel::Info, format!("Established connection with '{}': \"{}\"", self.params.address, banner).as_ref());
}
// Set state to explorer
self.input_mode = InputMode::Explorer;
self.reload_remote_dir();