1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

small optimisation

This commit is contained in:
Laserlicht 2023-10-21 02:16:42 +02:00 committed by GitHub
parent 0eba0ee686
commit 9a116f9b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}