Otherwise UI elements won't be disabled correctly if the config window is first opened while a game is running.