fix file browser slowness (#3021)

This commit is contained in:
shun-iwasawa 2020-01-15 13:17:34 +09:00 committed by GitHub
parent b0dac22325
commit 7f56cb89d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2127,8 +2127,7 @@ void FileBrowser::refreshFolder(const TFilePath &folderPath) {
std::set<FileBrowser *>::iterator it;
for (it = activeBrowsers.begin(); it != activeBrowsers.end(); ++it) {
FileBrowser *browser = *it;
DvDirModel::instance()->refreshFolder(
folderPath, DvDirModel::instance()->getIndexByPath(folderPath));
DvDirModel::instance()->refreshFolder(folderPath);
if (browser->getFolder() == folderPath) {
browser->setFolder(folderPath, false, true);
}