aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-05-01 09:48:51 -0400
committerKen Moore <ken@ixsystems.com>2017-05-01 09:48:51 -0400
commitaf7d7127d4df1eed6e61e0b57f12b2fa270f2eb7 (patch)
tree7631c9040817a228f8dc1c2d257bf50aee135ddf /src-qt5
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-af7d7127d4df1eed6e61e0b57f12b2fa270f2eb7.tar.gz
lumina-af7d7127d4df1eed6e61e0b57f12b2fa270f2eb7.tar.bz2
lumina-af7d7127d4df1eed6e61e0b57f12b2fa270f2eb7.zip
Add a new <DesktopPrefix>/generateMediaIcons=[true/false] setting.
This will be used to determine whether to automatically show the /media files on the desktop.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/lumina-desktop/LDesktop.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/LDesktop.cpp b/src-qt5/core/lumina-desktop/LDesktop.cpp
index 90c2f31f..01529b43 100644
--- a/src-qt5/core/lumina-desktop/LDesktop.cpp
+++ b/src-qt5/core/lumina-desktop/LDesktop.cpp
@@ -375,11 +375,13 @@ void LDesktop::UpdateDesktop(){
}
}
//Also show anything available in the /media directory
- QDir media("/media");
+ if(settings->value(DPREFIX+"generateMediaIcons",true).toBool()){
+ QDir media("/media");
QStringList mediadirs = media.entryList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot, QDir::Name);
for(int i=0; i<mediadirs.length(); i++){
filelist << media.absoluteFilePath(mediadirs[i]);
}
+ }
//qDebug() << "Found media Dirs:" << mediadirs;
UpdateDesktopPluginArea();
bgDesktop->LoadItems(plugins, filelist);
bgstack15