Merge branch 'cemu-project:main' into gcc

This commit is contained in:
ArtemisX64 2022-08-27 12:33:32 +09:00 committed by GitHub
commit e4fc8ce726
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -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())
{