mirror of
https://github.com/holub/mame
synced 2025-06-07 13:23:50 +03:00
swlist: don't add switch item ordering menu entry when there's only 1 swlist item
This commit is contained in:
parent
11c6138afc
commit
201ca82e0c
@ -253,8 +253,14 @@ void menu_software_list::populate()
|
|||||||
for (const software_info &swinfo : m_swlist->get_info())
|
for (const software_info &swinfo : m_swlist->get_info())
|
||||||
append_software_entry(swinfo);
|
append_software_entry(swinfo);
|
||||||
|
|
||||||
// add an entry to change ordering
|
if (m_entrylist.size() > 1)
|
||||||
item_append(_("Switch Item Ordering"), 0, ITEMREF_SWITCH_ITEM_ORDERING);
|
{
|
||||||
|
// add an entry to change ordering
|
||||||
|
item_append(_("Switch Item Ordering"), 0, ITEMREF_SWITCH_ITEM_ORDERING);
|
||||||
|
|
||||||
|
// initial cursor to first entry in the list
|
||||||
|
set_selected_index(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (m_ordered_by_shortname)
|
if (m_ordered_by_shortname)
|
||||||
{
|
{
|
||||||
@ -287,9 +293,6 @@ void menu_software_list::populate()
|
|||||||
}
|
}
|
||||||
|
|
||||||
item_append(menu_item_type::SEPARATOR);
|
item_append(menu_item_type::SEPARATOR);
|
||||||
|
|
||||||
// initial cursor to first entry in the list
|
|
||||||
set_selected_index(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user