diff options
author | Ken Moore <moorekou@gmail.com> | 2016-08-18 13:58:42 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-08-18 13:58:42 -0400 |
commit | a29216756760e168a245b8a89ea7261d8933b35e (patch) | |
tree | 1a95c20604e16a103cfab9cbf3152960c19363c4 /src-qt5/core-utils/lumina-config/pages | |
parent | Add the ability for Lumina to automatically add/remove symlinks from the ~/De... (diff) | |
download | lumina-a29216756760e168a245b8a89ea7261d8933b35e.tar.gz lumina-a29216756760e168a245b8a89ea7261d8933b35e.tar.bz2 lumina-a29216756760e168a245b8a89ea7261d8933b35e.zip |
Add a configuration option to lumina-config for enabling/disabling the automatic desktop symlinks while a session is active.
Diffstat (limited to 'src-qt5/core-utils/lumina-config/pages')
-rw-r--r-- | src-qt5/core-utils/lumina-config/pages/page_session_options.cpp | 3 | ||||
-rw-r--r-- | src-qt5/core-utils/lumina-config/pages/page_session_options.ui | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp b/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp index 015517a8..91f3a0d0 100644 --- a/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp +++ b/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp @@ -32,6 +32,7 @@ page_session_options::page_session_options(QWidget *parent) : PageWidget(parent) connect(ui->check_session_numlock, SIGNAL(toggled(bool)), this, SLOT(settingChanged()) ); connect(ui->check_session_playloginaudio, SIGNAL(toggled(bool)), this, SLOT(settingChanged()) ); connect(ui->check_session_playlogoutaudio, SIGNAL(toggled(bool)), this, SLOT(settingChanged()) ); + connect(ui->check_autoapplinks, SIGNAL(toggled(bool)), this, SLOT(settingChanged()) ); updateIcons(); } @@ -45,6 +46,7 @@ page_session_options::~page_session_options(){ //================ void page_session_options::SaveSettings(){ QSettings sessionsettings("lumina-desktop","sessionsettings"); + sessionsettings.setValue("AutomaticDesktopAppLinks", ui->check_autoapplinks->isChecked()); sessionsettings.setValue("EnableNumlock", ui->check_session_numlock->isChecked()); sessionsettings.setValue("PlayStartupAudio", ui->check_session_playloginaudio->isChecked()); sessionsettings.setValue("PlayLogoutAudio", ui->check_session_playlogoutaudio->isChecked()); @@ -62,6 +64,7 @@ void page_session_options::LoadSettings(int){ ui->check_session_numlock->setChecked( sessionsettings.value("EnableNumlock", true).toBool() ); ui->check_session_playloginaudio->setChecked( sessionsettings.value("PlayStartupAudio",true).toBool() ); ui->check_session_playlogoutaudio->setChecked( sessionsettings.value("PlayLogoutAudio",true).toBool() ); + ui->check_autoapplinks->setChecked( sessionsettings.value("AutomaticDesktopAppLinks",true).toBool() ); ui->push_session_setUserIcon->setIcon( LXDG::findIcon(QDir::homePath()+"/.loginIcon.png", "user-identity") ); ui->line_session_time->setText( sessionsettings.value("TimeFormat","").toString() ); ui->line_session_date->setText( sessionsettings.value("DateFormat","").toString() ); diff --git a/src-qt5/core-utils/lumina-config/pages/page_session_options.ui b/src-qt5/core-utils/lumina-config/pages/page_session_options.ui index b0e5fb91..55d204ae 100644 --- a/src-qt5/core-utils/lumina-config/pages/page_session_options.ui +++ b/src-qt5/core-utils/lumina-config/pages/page_session_options.ui @@ -50,6 +50,16 @@ </widget> </item> <item> + <widget class="QCheckBox" name="check_autoapplinks"> + <property name="statusTip"> + <string>Automatically create/remove desktop symlinks for applications that are installed/removed</string> + </property> + <property name="text"> + <string>Manage desktop app links</string> + </property> + </widget> + </item> + <item> <layout class="QHBoxLayout" name="horizontalLayout_14"> <item> <widget class="QPushButton" name="push_session_setUserIcon"> |