From eb96f42ba01c39634939c6db841ec2867103cffd Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Wed, 15 May 2024 21:07:47 +0200 Subject: [PATCH] fixes graphical glitch when there is no savegame --- client/lobby/ExtraOptionsTab.cpp | 4 +++- client/lobby/OptionsTabBase.cpp | 5 +---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/client/lobby/ExtraOptionsTab.cpp b/client/lobby/ExtraOptionsTab.cpp index 0b3b44526..f1d51f347 100644 --- a/client/lobby/ExtraOptionsTab.cpp +++ b/client/lobby/ExtraOptionsTab.cpp @@ -10,9 +10,11 @@ #include "StdInc.h" #include "ExtraOptionsTab.h" +#include "../widgets/Images.h" ExtraOptionsTab::ExtraOptionsTab() : OptionsTabBase(JsonPath::builtin("config/widgets/extraOptionsTab.json")) { - + if(auto textureCampaignOverdraw = widget("textureCampaignOverdraw")) + textureCampaignOverdraw->disable(); } diff --git a/client/lobby/OptionsTabBase.cpp b/client/lobby/OptionsTabBase.cpp index fd2ba546e..c4d728d00 100644 --- a/client/lobby/OptionsTabBase.cpp +++ b/client/lobby/OptionsTabBase.cpp @@ -428,8 +428,5 @@ void OptionsTabBase::recreate(bool campaign) } if(auto textureCampaignOverdraw = widget("textureCampaignOverdraw")) - { - if(!campaign) - textureCampaignOverdraw->disable(); - } + textureCampaignOverdraw->setEnabled(campaign); }