fix file browser slowness (#3021)
This commit is contained in:
parent
b0dac22325
commit
7f56cb89d3
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue