[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

@@ -4,7 +4,8 @@ static GlobalPreferences s_globalPreferences;
GlobalPreferences::GlobalPreferences() :
m_language(I18n::Language::French),
m_examMode(ExamMode::Desactivate)
m_examMode(ExamMode::Desactivate),
m_showUpdatePopUp(true)
{
}
@@ -31,3 +32,13 @@ void GlobalPreferences::setExamMode(ExamMode examMode) {
m_examMode = examMode;
}
}
bool GlobalPreferences::showUpdatePopUp() const {
return m_showUpdatePopUp;
}
void GlobalPreferences::setShowUpdatePopUp(bool showUpdatePopUp) {
if (showUpdatePopUp != m_showUpdatePopUp) {
m_showUpdatePopUp = showUpdatePopUp;
}
}