[poincare] Fix Warning message exit on special keys

We want the memory full warning to be exited only on OK, EXE, ... but
Syntax warning (for instance) to be exited on any key pressed
This commit is contained in:
Léa Saviot
2018-09-14 17:59:14 +02:00
parent e0495de6af
commit a4d79332ea
5 changed files with 7 additions and 13 deletions

View File

@@ -36,14 +36,9 @@ WarningController::WarningController(Responder * parentResponder, I18n::Message
{
}
void WarningController::setLabel(I18n::Message label) {
void WarningController::setLabel(I18n::Message label, bool specialExitKeys) {
m_contentView.setLabel(label);
m_exitOnOKBackEXE = false;
}
void WarningController::setLabelAndSpecialExitKeys(I18n::Message message) {
setLabel(message);
m_exitOnOKBackEXE = true;
m_exitOnOKBackEXE = specialExitKeys;
}
const char * WarningController::title() {