mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
[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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user