mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
gui: keep shown graphic pack when clicking on preset dropdown (#77)
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user