don't refresh browser on updating filter...
... because this only causes a refresh if there are no servers to even begin with and the chance of that happening is kinda slim if we catch servers really fast. this also prevents 2 calls to Refresh right as you open a empty server browser. 😛
This commit is contained in:
parent
102e8862f2
commit
a0345bcdbe
@ -207,13 +207,6 @@ namespace Components
|
|||||||
auto list = ServerList::GetList();
|
auto list = ServerList::GetList();
|
||||||
if (!list) return;
|
if (!list) return;
|
||||||
|
|
||||||
// Refresh entirely, if there is no entry in the list
|
|
||||||
if (list->empty())
|
|
||||||
{
|
|
||||||
ServerList::Refresh(UIScript::Token());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ui_browserShowFull = Dvar::Var("ui_browserShowFull").get<bool>();
|
bool ui_browserShowFull = Dvar::Var("ui_browserShowFull").get<bool>();
|
||||||
bool ui_browserShowEmpty = Dvar::Var("ui_browserShowEmpty").get<bool>();
|
bool ui_browserShowEmpty = Dvar::Var("ui_browserShowEmpty").get<bool>();
|
||||||
int ui_browserShowHardcore = Dvar::Var("ui_browserKillcam").get<int>();
|
int ui_browserShowHardcore = Dvar::Var("ui_browserKillcam").get<int>();
|
||||||
|
Loading…
Reference in New Issue
Block a user