aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_session_options.cpp3
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_session_options.ui9
-rw-r--r--src-qt5/core/lumina-desktop/BootSplash.cpp7
3 files changed, 16 insertions, 3 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 5a1ed1d4..51fe7411 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
@@ -33,6 +33,7 @@ page_session_options::page_session_options(QWidget *parent) : PageWidget(parent)
connect(ui->check_session_playlogoutaudio, SIGNAL(toggled(bool)), this, SLOT(settingChanged()) );
connect(ui->check_autoapplinks, SIGNAL(toggled(bool)), this, SLOT(settingChanged()) );
connect(ui->check_watch_app_procs, SIGNAL(toggled(bool)), this, SLOT(settingChanged()) );
+ connect(ui->check_quotes, SIGNAL(toggled(bool)), this, SLOT(settingChanged()) );
connect(ui->mywindowmanager, SIGNAL(currentIndexChanged(int)), this, SLOT(settingChanged()));
updateIcons();
}
@@ -53,6 +54,7 @@ void page_session_options::SaveSettings(){
sessionsettings.setValue("TimeFormat", ui->line_session_time->text());
sessionsettings.setValue("DateFormat", ui->line_session_date->text());
sessionsettings.setValue("DateTimeOrder", ui->combo_session_datetimeorder->currentData().toString());
+ sessionsettings.setValue("DisableQuotes", ui->check_quotes->isChecked());
QString my_win = ui->mywindowmanager->currentData().toString();
// Warn user if they select a non-default window manager
@@ -97,6 +99,7 @@ void page_session_options::LoadSettings(int){
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->check_quotes->setChecked( sessionsettings.value("DisableQuotes",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 25c92919..38e81bc6 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
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>512</width>
- <height>300</height>
+ <height>315</height>
</rect>
</property>
<property name="windowTitle">
@@ -67,6 +67,13 @@
</widget>
</item>
<item>
+ <widget class="QCheckBox" name="check_quotes">
+ <property name="text">
+ <string>Disable Startup Quotes</string>
+ </property>
+ </widget>
+ </item>
+ <item>
<layout class="QHBoxLayout" name="horizontalLayout_14">
<item>
<widget class="QPushButton" name="push_session_setUserIcon">
diff --git a/src-qt5/core/lumina-desktop/BootSplash.cpp b/src-qt5/core/lumina-desktop/BootSplash.cpp
index d2850aee..75bbcdaf 100644
--- a/src-qt5/core/lumina-desktop/BootSplash.cpp
+++ b/src-qt5/core/lumina-desktop/BootSplash.cpp
@@ -35,7 +35,10 @@ void BootSplash::generateTipOfTheDay(){
tip = LUtils::readFile(sysMOTD).join("\n");
}else{
- int index = qrand()%46; //Make sure this number matches the length of the case below (max value +1)
+ QSettings sessionsettings("lumina-desktop","sessionsettings");
+ bool disablequotes = sessionsettings.value("DisableQuotes").toBool();
+ if (disablequotes == false){
+ int index = qrand()%46; //Make sure this number matches the length of the case below (max value +1)
switch(index){
case 0:
tip = tr("This desktop is powered by coffee, coffee, and more coffee."); break;
@@ -130,7 +133,7 @@ void BootSplash::generateTipOfTheDay(){
case 45:
tip = "\""+tr("Better to remain silent and be thought a fool than to speak out and remove all doubt.")+"\"\n\n- Abraham Lincoln -"; break;
} //end of switch for tips
-
+ } // end else statement for disabling quotes
} //end of fallback tip generation
ui->label_welcome->setText( tip);
}
bgstack15