mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Repopulate demo list after closing demo player because a new demo could have been created (Thanks Saavik)
This commit is contained in:
parent
c88a4f00d2
commit
fc9ab26be0
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue