aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-07-07 09:09:39 -0400
committerKen Moore <moorekou@gmail.com>2016-07-07 09:09:39 -0400
commitda53cf9c933be20d0deea878e5c3a748044a1033 (patch)
treeb8edaa0d0900045d6c9d102258b982ba176c406c
parentFix a crash when right-clicking a non-applauncher desktop plugin and removing... (diff)
downloadlumina-da53cf9c933be20d0deea878e5c3a748044a1033.tar.gz
lumina-da53cf9c933be20d0deea878e5c3a748044a1033.tar.bz2
lumina-da53cf9c933be20d0deea878e5c3a748044a1033.zip
Ensure the checkbox for loading desktop icons properly reflects the setting in the file.
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_interface_desktop.cpp2
1 files changed, 2 insertions, 0 deletions
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 9c319780..7a52959a 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
@@ -33,6 +33,7 @@ void page_interface_desktop::SaveSettings(){
QSettings settings("lumina-desktop","desktopsettings");
QString DPrefix = "desktop-"+QString::number(cscreen)+"/";
+ settings.setValue(DPrefix+"generateDesktopIcons", ui->check_desktop_autolaunchers->isChecked() );
QStringList plugs;
for(int i=0; i<ui->list_desktop_plugins->count(); i++){
plugs << ui->list_desktop_plugins->item(i)->whatsThis();
@@ -53,6 +54,7 @@ void page_interface_desktop::LoadSettings(int screennum){
emit ChangePageTitle( tr("Desktop Settings") );
QSettings settings("lumina-desktop","desktopsettings");
QString DPrefix = "desktop-"+QString::number(cscreen)+"/";
+ ui->check_desktop_autolaunchers->setChecked(settings.value(DPrefix+"generateDesktopIcons",false).toBool() );
QStringList dplugs = settings.value(DPrefix+"pluginlist",QStringList()).toStringList();
ui->list_desktop_plugins->clear();
bgstack15