Skip to content

Commit 00e7094

Browse files
committed
Fix cancel button not reverting option menu2
1 parent cee9a71 commit 00e7094

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

source/menus/menu_fileoptions.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,12 @@ void Menu_ControlOptions(u64 input, TouchInfo touchInfo) {
787787
}
788788
else if (touchInfo.state == TouchEnded && touchInfo.tapType != TapNone) {
789789
// Touched outside
790-
if (tapped_outside(touchInfo, 350, 85, 930, 635))
790+
if (tapped_outside(touchInfo, 350, 85, 930, 635)) {
791+
row = 0;
792+
column = 0;
793+
options_more = false;
791794
MENU_DEFAULT_STATE = MENU_STATE_HOME;
795+
}
792796
// Column 0
793797
else if (touchInfo.firstTouch.py >= 188 && touchInfo.firstTouch.py <= 289) {
794798
// Row 0
@@ -843,8 +847,12 @@ void Menu_ControlOptions(u64 input, TouchInfo touchInfo) {
843847
}
844848
}
845849
// Cancel Button
846-
else if (tapped_inside(touchInfo, 880 - options_cancel_width, 585 - options_cancel_height, 920 + options_cancel_width, 625 + options_cancel_height))
850+
else if (tapped_inside(touchInfo, 880 - options_cancel_width, 585 - options_cancel_height, 920 + options_cancel_width, 625 + options_cancel_height)) {
851+
row = 0;
852+
column = 0;
853+
options_more = false;
847854
MENU_DEFAULT_STATE = MENU_STATE_HOME;
855+
}
848856
}
849857
}
850858

0 commit comments

Comments
 (0)