diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-01-03 12:44:13 -0500 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-01-03 12:44:13 -0500 |
commit | d0553003b9a1b73b164c8ee9348cc11ee8fb8304 (patch) | |
tree | 3a68b4973be42d2859a5dc06709261eff2a1bd60 /src-qt5/core/libLumina/DesktopSettings.cpp | |
parent | Added some specific data for desktop plugins into the JSON reader (diff) | |
parent | Get the DesktopSettings class automatically providing notifications about fil... (diff) | |
download | lumina-d0553003b9a1b73b164c8ee9348cc11ee8fb8304.tar.gz lumina-d0553003b9a1b73b164c8ee9348cc11ee8fb8304.tar.bz2 lumina-d0553003b9a1b73b164c8ee9348cc11ee8fb8304.zip |
Merge branch 'master' of https://github.com/trueos/lumina
Diffstat (limited to 'src-qt5/core/libLumina/DesktopSettings.cpp')
-rw-r--r-- | src-qt5/core/libLumina/DesktopSettings.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/DesktopSettings.cpp b/src-qt5/core/libLumina/DesktopSettings.cpp index f1c74bc5..509afa83 100644 --- a/src-qt5/core/libLumina/DesktopSettings.cpp +++ b/src-qt5/core/libLumina/DesktopSettings.cpp @@ -17,6 +17,7 @@ // === PUBLIC === DesktopSettings::DesktopSettings(QObject *parent) : QObject(parent){ + qRegisterMetaType< DesktopSettings::File >("DesktopSettings::File"); watcher = 0; runmode = DesktopSettings::UserFull; } @@ -275,6 +276,7 @@ QString DesktopSettings::rel_path(DesktopSettings::File file){ //=== PRIVATE SLOTS === void DesktopSettings::fileChanged(QString file){ + //qDebug() << "Got File Changed:" << file; //QFileSystemWatcher change detected if(!watcher->files().contains(file)){ //Make sure this file stays watched for changes @@ -287,6 +289,7 @@ void DesktopSettings::fileChanged(QString file){ QList< DesktopSettings::File > types = files.keys(); for(int i=0; i<types.length(); i++){ if(files[types[i]].contains(file)){ + //qDebug() << "Emit File Type Changed:" << types[i]; emit FileModified(types[i]); break; } |