History

editing the interstitial page

Dante Ruiz committed 8 years ago

Commit 2f911951 parent 98dafa34 files · +20 −21Browse files

Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all

Unified · Split

interface/src/Application.cpp+2−5
@@ -3488,14 +3488,11 @@ bool Application::isServerlessMode() const { · 3487 unmodified lines
3488}3488}
3489 3489
3490bool Application::isInterstitialMode() const {3490bool Application::isInterstitialMode() const {
3491 bool interstitialModeEnabled = Menu::getInstance()->isOptionChecked("Enable Interstitial");3491 return _interstitialMode;
3492 return interstitialModeEnabled ? _interstitialMode : false;
3493}3492}
3494 3493
3495void Application::setIsInterstitialMode(bool interstitialMode) {3494void Application::setIsInterstitialMode(bool interstitialMode) {
3496 auto menu = Menu::getInstance();3495 if (_interstitialMode != interstitialMode) {
3497 bool interstitialModeEnabled = menu->isOptionChecked("Enable Interstitial");
3498 if (_interstitialMode != interstitialMode && interstitialModeEnabled) {
3499 _interstitialMode = interstitialMode;3496 _interstitialMode = interstitialMode;
3500 emit interstitialModeChanged(_interstitialMode);3497 emit interstitialModeChanged(_interstitialMode);
3501 }3498 }