1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Do not block "Load" button in battle

This commit is contained in:
Ivan Savenko 2023-03-05 00:51:46 +02:00
parent 17dfd3d34a
commit cbe6a80020

View File

@ -56,12 +56,9 @@ SettingsMainWindow::SettingsMainWindow(BattleInterface * parentBattleUi) : Inter
std::shared_ptr<CButton> restartButton = widget<CButton>("restartButton");
assert(restartButton);
if(CSH->isGuest() || parentBattleUi)
{
loadButton->block(true);
saveButton->block(true);
restartButton->block(true);
}
loadButton->block(CSH->isGuest());
saveButton->block(CSH->isGuest() || parentBattleUi);
restartButton->block(CSH->isGuest() || parentBattleUi);
int defaultTabIndex = 0;
if(parentBattleUi != nullptr)