mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Solved file index in explorer files at start of termscp, in case the first entry is an hidden file
This commit is contained in:
@@ -303,6 +303,8 @@ impl Activity for FileTransferActivity {
|
||||
// Get files at current wd
|
||||
self.local_scan(pwd.as_path());
|
||||
self.local.wrkdir = pwd;
|
||||
// Index at first valid
|
||||
self.local.index_at_first();
|
||||
// Configure text editor
|
||||
self.setup_text_editor();
|
||||
}
|
||||
|
||||
@@ -108,6 +108,8 @@ impl FileTransferActivity {
|
||||
// Get current entries
|
||||
if let Ok(pwd) = self.client.pwd() {
|
||||
self.remote_scan(pwd.as_path());
|
||||
// Set index at first valid
|
||||
self.remote.index_at_first();
|
||||
// Set wrkdir
|
||||
self.remote.wrkdir = pwd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user