Update dir filter when prefs change. Maybe should explicitely link to extdbs change instead?

This commit is contained in:
Jean-Francois Dockes 2022-05-10 11:05:08 +02:00
parent 2ebb0a689d
commit 28fa7387ec
2 changed files with 3 additions and 5 deletions

View File

@ -107,7 +107,7 @@ static void treelist(const std::string& top, const std::vector<std::string>& lst
}
std::vector<std::string> curpath;
stringToTokens(top, curpath, "/");
std::cerr << "top " << top << " TOP len is " << curpath.size() << "\n";
//std::cerr << "top " << top << " TOP len is " << curpath.size() << "\n";
for (const auto& dir : lst) {
// std::cerr << "DIR: " << dir << "\n";
std::vector<std::string> npath;
@ -128,7 +128,7 @@ static void treelist(const std::string& top, const std::vector<std::string>& lst
}
// Callbacks for new entries above the base.
for (int j = i; j < int(npath.size()); j++) {
std::cerr << "Entering " << toksToPath(npath, j) << "\n";
//std::cerr << "Entering " << toksToPath(npath, j) << "\n";
cb.processone(toksToPath(npath, j), nullptr, FsTreeWalker::FtwDirEnter);
}
curpath.swap(npath);

View File

@ -1159,9 +1159,7 @@ void RclMain::setUIPrefs()
if (!uiprefs)
return;
LOGDEB("Recollmain::setUIPrefs\n");
if (nullptr != m_idxtreemodel && m_idxtreemodel->getDepth() != prefs.idxFilterTreeDepth) {
populateSideFilters();
}
populateSideFilters();
emit uiPrefsChanged();
enbSynAction->setDisabled(prefs.synFile.isEmpty());
enbSynAction->setChecked(prefs.synFileEnable);