add: try to visit compare's dir.

This commit is contained in:
2025-06-30 01:05:28 +08:00
parent 6de916f8a9
commit 3bcc8c2921
8 changed files with 74 additions and 40 deletions

View File

@@ -66,6 +66,15 @@ void frelayGUI::InitControl()
connect(localFile_, &FileManager::sigSendTasks, this, &frelayGUI::HandleTask);
connect(remoteFile_, &FileManager::sigSendTasks, this, &frelayGUI::HandleTask);
connect(compare_, &Compare::sigTasks, this, &frelayGUI::HandleTask);
connect(compare_, &Compare::sigTryVisit, this, [this](bool local, const QString& path) {
if (local) {
localFile_->SetUiCurrentPath(path);
localFile_->evtFile();
} else {
remoteFile_->SetUiCurrentPath(path);
remoteFile_->evtFile();
}
});
connect(connecter_, &Connecter::sigConfirmUse, remoteFile_, &FileManager::evtHome);
}