mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 09:09:18 +01:00
gui: keep shown graphic pack when clicking on preset dropdown (#77)
This commit is contained in:
parent
664e6684b8
commit
5cba1a1185
@ -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 New Issue
Block a user