diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-08 07:52:34 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-08 07:52:34 -0400 |
commit | 2b18987c84fc70ade57d953862a11cad622a2b70 (patch) | |
tree | 6fdf19a0bb8554d509f0375e636b2ca6fc6ff195 | |
parent | Add a new method to find/use the LIconCache within an application (static ins... (diff) | |
download | lumina-2b18987c84fc70ade57d953862a11cad622a2b70.tar.gz lumina-2b18987c84fc70ade57d953862a11cad622a2b70.tar.bz2 lumina-2b18987c84fc70ade57d953862a11cad622a2b70.zip |
Try to streamline the item loading routine in lumina-fm a bit more. No discernable difference on my system but it might impact other/slower systems.
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/Browser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/Browser.cpp b/src-qt5/desktop-utils/lumina-fm/Browser.cpp index 2fb7c533..0d4ddc0c 100644 --- a/src-qt5/desktop-utils/lumina-fm/Browser.cpp +++ b/src-qt5/desktop-utils/lumina-fm/Browser.cpp @@ -132,12 +132,12 @@ void Browser::loadDirectory(QString dir){ QString path = directory.absoluteFilePath(files[i]); if(old.contains(path)){ old.removeAll(path); } oldFiles << path; //add to list for next time - if(imageFormats.contains(path.section(".",-1).toLower()) || path.endsWith(".desktop")){ + if(imageFormats.contains(path.section(".",-1).toLower())){ QtConcurrent::run(this, &Browser::loadItem, path, this); //QCoreApplication::sendPostedEvents(); }else{ - //No special icon loading - do it in-line here - loadItem(path, this); + //No special icon loading - just skip the file read step + futureFinished(path, QByteArray()); //loadItem(path, this); } } watcher->addPath(directory.absolutePath()); |