Change: do not disable NewGRF window apply button if dev tools are enabled (#8975)

enabled
This commit is contained in:
Didac Perez Parera
2021-04-10 03:55:49 -07:00
committed by GitHub
parent 8a944c88c9
commit 47c0403320

View File

@@ -1255,7 +1255,7 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
this->BuildAvailables();
this->SetWidgetDisabledState(WID_NS_APPLY_CHANGES, !this->editable || !this->modified);
this->SetWidgetDisabledState(WID_NS_APPLY_CHANGES, !((this->editable && this->modified) || _settings_client.gui.newgrf_developer_tools));
this->SetWidgetsDisabledState(!this->editable,
WID_NS_PRESET_LIST,
WID_NS_TOGGLE_PALETTE,