1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

fixes graphical glitch when there is no savegame

This commit is contained in:
Laserlicht 2024-05-15 21:07:47 +02:00 committed by GitHub
parent e00046dd70
commit eb96f42ba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -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<CFilledTexture>("textureCampaignOverdraw"))
textureCampaignOverdraw->disable();
}

View File

@ -428,8 +428,5 @@ void OptionsTabBase::recreate(bool campaign)
}
if(auto textureCampaignOverdraw = widget<CFilledTexture>("textureCampaignOverdraw"))
{
if(!campaign)
textureCampaignOverdraw->disable();
}
textureCampaignOverdraw->setEnabled(campaign);
}