mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-09 11:17:30 -03:00
gui: keep shown graphic pack when clicking on preset dropdown (#77)
This commit is contained in:
parent
664e6684b8
commit
5cba1a1185
1 changed files with 4 additions and 0 deletions
|
@ -421,6 +421,10 @@ void GraphicPacksWindow2::OnTreeSelectionChanged(wxTreeEvent& event)
|
|||
{
|
||||
wxWindowUpdateLocker lock(this);
|
||||
|
||||
bool item_deselected = m_graphic_pack_tree->GetSelection() == m_graphic_pack_tree->GetRootItem();
|
||||
if (item_deselected)
|
||||
return;
|
||||
|
||||
const auto selection = m_graphic_pack_tree->GetSelection();
|
||||
if (selection.IsOk())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue