diff options
-rw-r--r-- | libLumina/LuminaUtils.cpp | 2 | ||||
-rw-r--r-- | libLumina/LuminaUtils.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libLumina/LuminaUtils.cpp b/libLumina/LuminaUtils.cpp index cf7353dc..42f36962 100644 --- a/libLumina/LuminaUtils.cpp +++ b/libLumina/LuminaUtils.cpp @@ -189,7 +189,7 @@ bool LUtils::validQuickPlugin(QString ID){ } QString LUtils::findQuickPluginFile(QString ID){ - if(ID.startsWith("quick-")){ ID = ID.section("-",1,50); } + if(ID.startsWith("quick-")){ ID = ID.section("-",1,50); } //just in case //Give preference to any user-supplied plugins (overwrites for system plugins) QString path = QDir::homePath()+"/.lumina/quickplugins/quick-"+ID+".qml"; if( QFile::exists(path) ){return path; } diff --git a/libLumina/LuminaUtils.h b/libLumina/LuminaUtils.h index ac0b93dc..188563dc 100644 --- a/libLumina/LuminaUtils.h +++ b/libLumina/LuminaUtils.h @@ -56,8 +56,9 @@ public: //Various function for finding valid QtQuick plugins on the system static bool validQuickPlugin(QString ID); static QString findQuickPluginFile(QString ID); - QStringList listQuickPlugins(); //List of valid ID's - QStringList infoQuickPlugin(QString ID); //Returns: [Name, Description, Icon] + static QStringList listQuickPlugins(); //List of valid ID's + static QStringList infoQuickPlugin(QString ID); //Returns: [Name, Description, Icon] + //Various functions for the favorites sub-system // Formatting Note: "<name>::::[dir/app/<mimetype>]::::<path>" // the <name> field might not be used for "app" flagged entries |