diff options
author | q5sys <jt@xsystems.com> | 2018-03-28 22:04:15 -0400 |
---|---|---|
committer | q5sys <jt@xsystems.com> | 2018-03-28 22:04:15 -0400 |
commit | e85309113e1b90212008ca6fcaba0b3c35aa6998 (patch) | |
tree | 9aa999a02895cdc2d26749de552f5dce11bbd935 /src-qt5/core/lumina-desktop/BootSplash.cpp | |
parent | Fixed page layout for All Pages mode (diff) | |
download | lumina-e85309113e1b90212008ca6fcaba0b3c35aa6998.tar.gz lumina-e85309113e1b90212008ca6fcaba0b3c35aa6998.tar.bz2 lumina-e85309113e1b90212008ca6fcaba0b3c35aa6998.zip |
add option to disbale startup quotes
Diffstat (limited to 'src-qt5/core/lumina-desktop/BootSplash.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop/BootSplash.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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); } |