[poincare] When memory exception, stay in the app and display popup

This commit is contained in:
Léa Saviot
2018-09-14 13:35:03 +02:00
parent f394a799ea
commit 6deaef49b8
9 changed files with 13 additions and 9 deletions

View File

@@ -14,8 +14,8 @@ Container::~Container() {
}
}
void Container::switchTo(App::Snapshot * snapshot) {
if (m_activeApp && snapshot == m_activeApp->snapshot()) {
void Container::switchTo(App::Snapshot * snapshot, bool forceSwitch) {
if (!forceSwitch && m_activeApp && snapshot == m_activeApp->snapshot()) {
return;
}
if (m_activeApp) {