Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all
Unified · Split
| @@ -3488,14 +3488,11 @@ bool Application::isServerlessMode() const { · 3487 unmodified lines | |||
| 3488 | } | 3488 | } |
| 3489 | 3489 | ||
| 3490 | bool Application::isInterstitialMode() const { | 3490 | bool Application::isInterstitialMode() const { |
| 3491 | bool interstitialModeEnabled = Menu::getInstance()->isOptionChecked("Enable Interstitial"); | 3491 | return _interstitialMode; |
| 3492 | return interstitialModeEnabled ? _interstitialMode : false; | ||
| 3493 | } | 3492 | } |
| 3494 | 3493 | ||
| 3495 | void Application::setIsInterstitialMode(bool interstitialMode) { | 3494 | void 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 | } |