Do not signal APTHOOK_ONRESTORE when the app is being closed

This commit is contained in:
fincs 2015-06-28 11:30:57 +02:00
parent 266ab2fe42
commit 68fbd06375

View File

@ -574,6 +574,7 @@ bool aptMainLoop()
case APP_SUSPENDING:
aptCallHook(APTHOOK_ONSUSPEND);
aptReturnToMenu();
if (aptGetStatus() == APP_RUNNING)
aptCallHook(APTHOOK_ONRESTORE);
break;
case APP_APPLETSTARTED: