Skip to content

Commit

Permalink
Revert "ui: fixed double menu after disconnecting in localhost"
Browse files Browse the repository at this point in the history
This reverts commit 492e3f5.
  • Loading branch information
rmarquis committed Jan 8, 2020
1 parent 492e3f5 commit a1b3f33
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/ui/ui_main.c
Expand Up @@ -4689,12 +4689,14 @@ void UI_RunMenuScript(char **args)
{ {
trap_Cvar_Set("sv_killserver", "1"); trap_Cvar_Set("sv_killserver", "1");
} }

else
trap_Cmd_ExecuteText(EXEC_APPEND, "disconnect\n"); {
trap_Key_SetCatcher(KEYCATCH_UI); trap_Cmd_ExecuteText(EXEC_APPEND, "disconnect\n");
Menus_CloseAll(); trap_Key_SetCatcher(KEYCATCH_UI);
Menus_ActivateByName("backgroundmusic", qtrue); Menus_CloseAll();
Menus_ActivateByName("main_opener", qtrue); Menus_ActivateByName("backgroundmusic", qtrue);
Menus_ActivateByName("main_opener", qtrue);
}
} }
else if (Q_stricmp(name, "ServerSort") == 0) else if (Q_stricmp(name, "ServerSort") == 0)
{ {
Expand Down

0 comments on commit a1b3f33

Please sign in to comment.