Simplify menu_cbs_init_bind_refresh
This commit is contained in:
parent
f53dc8fc67
commit
d405d34c0e
|
@ -31,16 +31,7 @@ int menu_cbs_init_bind_refresh(menu_file_list_cbs_t *cbs,
|
||||||
if (!cbs)
|
if (!cbs)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
switch (label_hash)
|
cbs->action_refresh = action_refresh_default;
|
||||||
{
|
|
||||||
case MENU_VALUE_MAIN_MENU:
|
|
||||||
cbs->action_refresh = NULL;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
cbs->action_refresh = action_refresh_default;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue