From 47c04033200c58671f31b1df0ad474f37bfb1864 Mon Sep 17 00:00:00 2001 From: Didac Perez Parera Date: Sat, 10 Apr 2021 03:55:49 -0700 Subject: Change: do not disable NewGRF window apply button if dev tools are enabled (#8975) enabled --- src/newgrf_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3-70-g09d2