mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Merge pull request #2153 from lakkatv/cocoa
Workaround for the double populate on cocoatouch
This commit is contained in:
commit
94397db093
@ -527,6 +527,14 @@ static void ui_companion_cocoatouch_notify_list_pushed(void *data,
|
|||||||
bool pushp = false;
|
bool pushp = false;
|
||||||
|
|
||||||
size_t new_size = file_list_get_size( menu_list );
|
size_t new_size = file_list_get_size( menu_list );
|
||||||
|
|
||||||
|
/* FIXME workaround for the double call */
|
||||||
|
if ( old_size == 0 )
|
||||||
|
{
|
||||||
|
old_size = new_size;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( old_size == new_size ) {
|
if ( old_size == new_size ) {
|
||||||
pushp = false;
|
pushp = false;
|
||||||
} else if ( old_size < new_size ) {
|
} else if ( old_size < new_size ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user