1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Remove rct_window::enabled_widgets (#16643)

`enabled_widgets` was used to enable input for widgets. However I do not recall anywhere this being used to specifically disable a widget which doesn't use the dedicated `disabled_widgets` flag. I don't think there is any purpose in keeping this, so I have removed all uses of it.
This commit is contained in:
Ted John
2022-02-13 23:06:19 +00:00
committed by GitHub
parent 09897ede9e
commit da89a4e413
73 changed files with 15 additions and 1021 deletions

View File

@@ -60,7 +60,6 @@ private:
public:
void OnOpen() override
{
enabled_widgets = (1ULL << WIDX_CLOSE) | (1ULL << WIDX_CANCEL) | (1ULL << WIDX_OKAY);
widgets = window_text_input_widgets;
WindowInitScrollWidgets(this);
SetParentWindow(nullptr, 0);