Update dir filter when prefs change. Maybe should explicitely link to extdbs change instead?
This commit is contained in:
parent
2ebb0a689d
commit
28fa7387ec
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user