summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/lib/oldmenuapi.c2
-rw-r--r--apps/plugins/solitaire.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/lib/oldmenuapi.c b/apps/plugins/lib/oldmenuapi.c
index dbe151daf9..742d394a50 100644
--- a/apps/plugins/lib/oldmenuapi.c
+++ b/apps/plugins/lib/oldmenuapi.c
@@ -112,9 +112,9 @@ int menu_show(int m)
case ACTION_STD_OK:
return rb->gui_synclist_get_sel_pos(&(menus[m].synclist));
-
case ACTION_STD_CANCEL:
case ACTION_STD_MENU:
+ case SYS_POWEROFF:
exit = true;
break;
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c
index 92441baa19..05ff25b721 100644
--- a/apps/plugins/solitaire.c
+++ b/apps/plugins/solitaire.c
@@ -1579,6 +1579,9 @@ int solitaire( void )
}
break;
+ case SYS_POWEROFF:
+ return SOLITAIRE_QUIT;
+
default:
if( rb->default_event_handler( button ) == SYS_USB_CONNECTED )
return SOLITAIRE_USB;