From 5b3c3b9b380326b2b59943f0b5704cd2cac10f07 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 1 May 2017 09:57:21 -0400 Subject: Add the new "generateMediaIcons" setting to lumina-config (Interface->Desktop page). --- .../lumina-config/pages/page_interface_desktop.cpp | 4 +++- .../lumina-config/pages/page_interface_desktop.ui | 21 ++++++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) (limited to 'src-qt5/core-utils') diff --git a/src-qt5/core-utils/lumina-config/pages/page_interface_desktop.cpp b/src-qt5/core-utils/lumina-config/pages/page_interface_desktop.cpp index 66fdb9f7..a26ef268 100644 --- a/src-qt5/core-utils/lumina-config/pages/page_interface_desktop.cpp +++ b/src-qt5/core-utils/lumina-config/pages/page_interface_desktop.cpp @@ -18,6 +18,7 @@ page_interface_desktop::page_interface_desktop(QWidget *parent) : PageWidget(par connect(ui->tool_desktop_addplugin, SIGNAL(clicked()), this, SLOT(deskplugadded()) ); connect(ui->tool_desktop_rmplugin, SIGNAL(clicked()), this, SLOT(deskplugremoved()) ); connect(ui->check_desktop_autolaunchers, SIGNAL(clicked()), this, SLOT(settingChanged()) ); + connect(ui->check_media_icons, SIGNAL(clicked()), this, SLOT(settingChanged()) ); updateIcons(); } @@ -34,6 +35,7 @@ void page_interface_desktop::SaveSettings(){ QString DPrefix = "desktop-"+screenID+"/"; settings.setValue(DPrefix+"generateDesktopIcons", ui->check_desktop_autolaunchers->isChecked() ); + settings.setValue(DPrefix+"generateMediaIcons", ui->check_media_icons->isChecked() ); QStringList plugs; for(int i=0; ilist_desktop_plugins->count(); i++){ plugs << ui->list_desktop_plugins->item(i)->whatsThis(); @@ -56,7 +58,7 @@ void page_interface_desktop::LoadSettings(int screennum){ QString screenID = QApplication::screens().at(cscreen)->name(); QString DPrefix = "desktop-"+screenID+"/"; ui->check_desktop_autolaunchers->setChecked(settings.value(DPrefix+"generateDesktopIcons",false).toBool() ); - + ui->check_media_icons->setChecked(settings.value(DPrefix+"generateMediaIcons",true).toBool() ); QStringList dplugs = settings.value(DPrefix+"pluginlist",QStringList()).toStringList(); ui->list_desktop_plugins->clear(); for(int i=0; i - - - Display Desktop Folder Contents - - + + + + + Display Desktop Folder Contents + + + + + + + Display Removable Media Icons + + + + -- cgit