summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDidac Perez Parera <perez.didac@gmail.com>2021-04-10 03:55:49 -0700
committerGitHub <noreply@github.com>2021-04-10 12:55:49 +0200
commit47c04033200c58671f31b1df0ad474f37bfb1864 (patch)
tree4ee80654318f2ed2af8dae72fe9bcbc8e70c103a
parent8a944c88c9b10642641f2f44ae2937cf36b481a4 (diff)
downloadopenttd-47c04033200c58671f31b1df0ad474f37bfb1864.tar.xz
Change: do not disable NewGRF window apply button if dev tools are enabled (#8975)
enabled
-rw-r--r--src/newgrf_gui.cpp2
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,