diff options
author | Didac Perez Parera <perez.didac@gmail.com> | 2021-04-10 03:55:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-10 12:55:49 +0200 |
commit | 47c04033200c58671f31b1df0ad474f37bfb1864 (patch) | |
tree | 4ee80654318f2ed2af8dae72fe9bcbc8e70c103a /src | |
parent | 8a944c88c9b10642641f2f44ae2937cf36b481a4 (diff) | |
download | openttd-47c04033200c58671f31b1df0ad474f37bfb1864.tar.xz |
Change: do not disable NewGRF window apply button if dev tools are enabled (#8975)
enabled
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index ad37b3542..50e402ffb 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -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, |