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;
|
std::vector<std::string> curpath;
|
||||||
stringToTokens(top, 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) {
|
for (const auto& dir : lst) {
|
||||||
// std::cerr << "DIR: " << dir << "\n";
|
// std::cerr << "DIR: " << dir << "\n";
|
||||||
std::vector<std::string> npath;
|
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.
|
// Callbacks for new entries above the base.
|
||||||
for (int j = i; j < int(npath.size()); j++) {
|
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);
|
cb.processone(toksToPath(npath, j), nullptr, FsTreeWalker::FtwDirEnter);
|
||||||
}
|
}
|
||||||
curpath.swap(npath);
|
curpath.swap(npath);
|
||||||
|
|||||||
@ -1159,9 +1159,7 @@ void RclMain::setUIPrefs()
|
|||||||
if (!uiprefs)
|
if (!uiprefs)
|
||||||
return;
|
return;
|
||||||
LOGDEB("Recollmain::setUIPrefs\n");
|
LOGDEB("Recollmain::setUIPrefs\n");
|
||||||
if (nullptr != m_idxtreemodel && m_idxtreemodel->getDepth() != prefs.idxFilterTreeDepth) {
|
populateSideFilters();
|
||||||
populateSideFilters();
|
|
||||||
}
|
|
||||||
emit uiPrefsChanged();
|
emit uiPrefsChanged();
|
||||||
enbSynAction->setDisabled(prefs.synFile.isEmpty());
|
enbSynAction->setDisabled(prefs.synFile.isEmpty());
|
||||||
enbSynAction->setChecked(prefs.synFileEnable);
|
enbSynAction->setChecked(prefs.synFileEnable);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user