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:
parent
e00046dd70
commit
eb96f42ba0
@ -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();
|
||||
}
|
||||
|
@ -428,8 +428,5 @@ void OptionsTabBase::recreate(bool campaign)
|
||||
}
|
||||
|
||||
if(auto textureCampaignOverdraw = widget<CFilledTexture>("textureCampaignOverdraw"))
|
||||
{
|
||||
if(!campaign)
|
||||
textureCampaignOverdraw->disable();
|
||||
}
|
||||
textureCampaignOverdraw->setEnabled(campaign);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user