mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +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:
@@ -96,8 +96,8 @@ void App::dismissModalViewController() {
|
||||
m_modalViewController.dismissModalViewController();
|
||||
}
|
||||
|
||||
void App::displayWarning(I18n::Message warningMessage) {
|
||||
m_warningController.setLabelAndSpecialExitKeys(warningMessage);
|
||||
void App::displayWarning(I18n::Message warningMessage, bool specialExitKeys) {
|
||||
m_warningController.setLabel(warningMessage, specialExitKeys);
|
||||
m_modalViewController.displayModalViewController(&m_warningController, 0.5f, 0.5f);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user