From 3bd0e9a3b96960951a13d5df6cdb3da337356260 Mon Sep 17 00:00:00 2001 From: SanyaSho Date: Wed, 3 Aug 2022 18:21:04 +0300 Subject: [PATCH] gameui: don`t show FOVValueLabel if fov_desired cvar is not exists --- gameui/OptionsSubVideo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gameui/OptionsSubVideo.cpp b/gameui/OptionsSubVideo.cpp index 71844f96a7..55b36bd1b3 100644 --- a/gameui/OptionsSubVideo.cpp +++ b/gameui/OptionsSubVideo.cpp @@ -448,6 +448,12 @@ public: { pFOV->SetVisible( false ); } + + pFOV = FindChildByName( "FovValueLabel" ); + if ( pFOV ) + { + pFOV->SetVisible( false ); + } } MarkDefaultSettingsAsRecommended();