mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 04:48:35 -07:00
Fix browser input ignore while loading
This commit is contained in:
@@ -360,8 +360,8 @@ static bool archive_view_input(InputEvent* event, void* context) {
|
|||||||
},
|
},
|
||||||
false);
|
false);
|
||||||
|
|
||||||
if(is_loading) {
|
if(is_loading && event->key != InputKeyBack) {
|
||||||
return false;
|
return true; // Return without doing anything
|
||||||
}
|
}
|
||||||
if(in_menu) {
|
if(in_menu) {
|
||||||
if(event->type != InputTypeShort) {
|
if(event->type != InputTypeShort) {
|
||||||
|
|||||||
@@ -661,8 +661,8 @@ static bool file_browser_view_input_callback(InputEvent* event, void* context) {
|
|||||||
{ is_loading = model->folder_loading || model->list_loading; },
|
{ is_loading = model->folder_loading || model->list_loading; },
|
||||||
false);
|
false);
|
||||||
|
|
||||||
if(is_loading) {
|
if(is_loading && event->key != InputKeyBack) {
|
||||||
return false;
|
return true; // Return without doing anything
|
||||||
} else if(event->key == InputKeyUp || event->key == InputKeyDown) {
|
} else if(event->key == InputKeyUp || event->key == InputKeyDown) {
|
||||||
if(event->type == InputTypeShort || event->type == InputTypeRepeat) {
|
if(event->type == InputTypeShort || event->type == InputTypeRepeat) {
|
||||||
with_view_model(
|
with_view_model(
|
||||||
|
|||||||
Reference in New Issue
Block a user