This commit is contained in:
veeso
2021-05-02 14:59:21 +02:00
parent a088c6dbd3
commit cbe242bb94

View File

@@ -749,6 +749,12 @@ impl FileTransferActivity {
if push { if push {
self.local.pushd(prev_dir.as_path()) self.local.pushd(prev_dir.as_path())
} }
// @! if synchronized browsing is enabled, change directory on remote too ~ since 0.5.0
if self.browser.sync_browsing {
if let Some(name) = path.file_name() {
self.remote_changedir(PathBuf::from(name).as_path(), push);
}
}
} }
Err(err) => { Err(err) => {
// Report err // Report err
@@ -778,6 +784,13 @@ impl FileTransferActivity {
if push { if push {
self.remote.pushd(prev_dir.as_path()) self.remote.pushd(prev_dir.as_path())
} }
// @! if synchronized browsing is enabled, change directory on local too ~ since 0.5.0
if self.browser.sync_browsing {
if let Some(name) = path.file_name() {
self.local_changedir(PathBuf::from(name).as_path(), push);
// TODO: move this somewhere else, since it's calling recursively
}
}
} }
Err(err) => { Err(err) => {
// Report err // Report err