From 3b475331f25e1c6e89b23a4a3335d70d4ecc5c4e 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 71844f96..55b36bd1 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();