Repopulate demo list after closing demo player because a new demo could have been created (Thanks Saavik)

This commit is contained in:
def 2014-09-05 21:17:04 +02:00
parent c88a4f00d2
commit fc9ab26be0

View file

@ -390,7 +390,11 @@ void CMenus::RenderDemoPlayer(CUIRect MainView)
ButtonBar.VSplitRight(ButtonbarHeight*3, &ButtonBar, &Button);
static int s_ExitButton = 0;
if(DoButton_DemoPlayer(&s_ExitButton, Localize("Close"), 0, &Button))
{
Client()->Disconnect();
DemolistPopulate();
DemolistOnUpdate(false);
}
// demo name
char aDemoName[64] = {0};