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:
parent
17dfd3d34a
commit
cbe6a80020
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user