Call asyncLoadMonitorDir whenever local library is displayed

Fixes the issue of changes not showing when they are done while Online library is displayed
This commit is contained in:
Nikhil Tanwar 2022-02-28 00:34:50 +05:30
parent 8f8711b3d6
commit b625309453

View File

@ -35,6 +35,9 @@ void ContentManager::setLocal(bool local) {
return; return;
} }
m_local = local; m_local = local;
if (m_local) {
asyncLoadMonitorDir(KiwixApp::instance()->getSettingsManager()->getMonitorDir());
}
emit(filterParamsChanged()); emit(filterParamsChanged());
} }