Browse Source

small optimisation

Laserlicht 2 years ago
parent
commit
9a116f9b20
1 changed files with 4 additions and 2 deletions
  1. 4 2
      client/lobby/CSelectionBase.cpp

+ 4 - 2
client/lobby/CSelectionBase.cpp

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