diff options
author | Ken Moore <moorekou@gmail.com> | 2015-10-15 14:54:03 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-10-15 14:54:03 -0400 |
commit | bedfc275a705fcc9792aa6d1dbbc9a30873468a6 (patch) | |
tree | cdacdf49270324c182dd911c822114eac0e42e28 /lumina-desktop/LSession.cpp | |
parent | Adjust the theme file a little bit for some more visual cues about which list... (diff) | |
download | lumina-bedfc275a705fcc9792aa6d1dbbc9a30873468a6.tar.gz lumina-bedfc275a705fcc9792aa6d1dbbc9a30873468a6.tar.bz2 lumina-bedfc275a705fcc9792aa6d1dbbc9a30873468a6.zip |
Add another upgrade rule for 0.8.6->0.8.7:
If the "desktopview" plugin is used on the desktop, remove it and trigger the auto-generation of desktop icons instead.
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r-- | lumina-desktop/LSession.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp index 5e344c82..145ac992 100644 --- a/lumina-desktop/LSession.cpp +++ b/lumina-desktop/LSession.cpp @@ -400,6 +400,19 @@ void LSession::checkUserFiles(){ //Now save that back to the file dset.setValue(plugKeys[i], plugs); } + //Also remove any "desktopview" desktop plugin and enable the automatic desktop icons instead + plugKeys = dset.allKeys().filter("desktop-").filter("/pluginlist"); + for(int i=0; i<plugKeys.length(); i++){ + QStringList plugs = dset.value(plugKeys[i], QStringList()).toStringList(); + QStringList old = plugs.filter("desktopview"); + bool found = !old.isEmpty(); + for(int j=0; j<old.length(); j++){ plugs.removeAll(old[j]); } + if(found){ + dset.setValue(plugKeys[i],plugs); //save the modified plugin list + //Also set the auto-generate flag on this desktop + dset.setValue(plugKeys[i].section("/",0,0)+"/generateDesktopIcons", true); + } + } dset.sync(); } |