From 2b18987c84fc70ade57d953862a11cad622a2b70 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 8 Jun 2017 07:52:34 -0400 Subject: 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. --- src-qt5/desktop-utils/lumina-fm/Browser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src-qt5') 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()); -- cgit