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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user