mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
small optimisation
This commit is contained in:
parent
0eba0ee686
commit
9a116f9b20
@ -113,9 +113,11 @@ void CSelectionBase::toggleTab(std::shared_ptr<CIntObject> tab)
|
||||
}
|
||||
|
||||
if(tabSel->showRandom)
|
||||
{
|
||||
tabSel->curFolder = "";
|
||||
tabSel->showRandom = false;
|
||||
tabSel->filter(0, true);
|
||||
tabSel->filter(0, true);
|
||||
tabSel->showRandom = false;
|
||||
}
|
||||
|
||||
GH.windows().totalRedraw();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user