This commit is contained in:
veeso
2022-08-17 10:33:31 +02:00
parent cce0c92c0b
commit a22c5025d7
21 changed files with 52 additions and 52 deletions

View File

@@ -208,7 +208,7 @@ impl FileTransferActivity {
Ok(h) => {
let hostname: String = h.as_os_str().to_string_lossy().to_string();
let tokens: Vec<&str> = hostname.split('.').collect();
String::from(*tokens.get(0).unwrap_or(&"localhost"))
String::from(*tokens.first().unwrap_or(&"localhost"))
}
Err(_) => String::from("localhost"),
};

View File

@@ -102,7 +102,7 @@ impl FileTransferActivity {
self.action_submit_local(entry);
// Update file list if sync
if self.browser.sync_browsing && self.browser.found().is_none() {
let _ = self.update_remote_filelist();
self.update_remote_filelist();
}
self.update_local_filelist();
}
@@ -112,7 +112,7 @@ impl FileTransferActivity {
self.action_submit_remote(entry);
// Update file list if sync
if self.browser.sync_browsing && self.browser.found().is_none() {
let _ = self.update_local_filelist();
self.update_local_filelist();
}
self.update_remote_filelist();
}
@@ -161,7 +161,7 @@ impl FileTransferActivity {
FileExplorerTab::Local => {
self.action_go_to_local_upper_dir();
if self.browser.sync_browsing && self.browser.found().is_none() {
let _ = self.update_remote_filelist();
self.update_remote_filelist();
}
// Reload file list component
self.update_local_filelist()
@@ -169,7 +169,7 @@ impl FileTransferActivity {
FileExplorerTab::Remote => {
self.action_go_to_remote_upper_dir();
if self.browser.sync_browsing && self.browser.found().is_none() {
let _ = self.update_local_filelist();
self.update_local_filelist();
}
// Reload file list component
self.update_remote_filelist()
@@ -182,7 +182,7 @@ impl FileTransferActivity {
FileExplorerTab::Local => {
self.action_go_to_previous_local_dir();
if self.browser.sync_browsing && self.browser.found().is_none() {
let _ = self.update_remote_filelist();
self.update_remote_filelist();
}
// Reload file list component
self.update_local_filelist()
@@ -190,7 +190,7 @@ impl FileTransferActivity {
FileExplorerTab::Remote => {
self.action_go_to_previous_remote_dir();
if self.browser.sync_browsing && self.browser.found().is_none() {
let _ = self.update_local_filelist();
self.update_local_filelist();
}
// Reload file list component
self.update_remote_filelist()

View File

@@ -80,8 +80,8 @@ impl FileTransferActivity {
self.refresh_local_status_bar();
self.refresh_remote_status_bar();
// Update components
let _ = self.update_local_filelist();
let _ = self.update_remote_filelist();
self.update_local_filelist();
self.update_remote_filelist();
// Global listener
self.mount_global_listener();
// Give focus to local explorer