[apps/settings] Enable/unable update popup

Change-Id: Ib772623728a481afd49c92968f7102d7c7d2d77b
This commit is contained in:
Émilie Feral
2017-05-12 11:25:34 +02:00
parent 0000bd3fb8
commit 18668cd38b
10 changed files with 50 additions and 19 deletions

View File

@@ -133,7 +133,7 @@ VariableBoxController * AppsContainer::variableBoxController() {
}
void AppsContainer::suspend(bool checkIfPowerKeyReleased) {
if (activeApp() != m_onBoardingApp) {
if (activeApp() != m_onBoardingApp && GlobalPreferences::sharedGlobalPreferences()->showUpdatePopUp()) {
activeApp()->displayModalViewController(&m_updateController, 0.f, 0.f);
}
Ion::Power::suspend(checkIfPowerKeyReleased);