mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
overlays: propagate item selection to children
This commit is contained in:
parent
0b3823f05c
commit
f3d6836471
1 changed files with 9 additions and 0 deletions
|
@ -91,6 +91,15 @@ namespace rsx
|
|||
void list_view::update_selection()
|
||||
{
|
||||
const overlay_element* current_element = get_selected_entry();
|
||||
|
||||
for (auto& item : m_items)
|
||||
{
|
||||
if (item)
|
||||
{
|
||||
item->set_selected(item.get() == current_element);
|
||||
}
|
||||
}
|
||||
|
||||
if (!current_element)
|
||||
{
|
||||
return; // Ideally unreachable but it should still be possible to recover by user interaction.
|
||||
|
|
Loading…
Add table
Reference in a new issue