Fix: too many options are hidden if the platform has no file picker

Mainly affects Android.

Co-authored-by: Basssiiie <Basssiiie@users.noreply.github.com>
This commit is contained in:
Michael Steenbeek 2024-02-07 23:38:45 +01:00 committed by GitHub
parent ad5ef31a97
commit 6a9f9025ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,8 @@
0.4.9 (in development)
------------------------------------------------------------------------
- Fix: [#20907] RCT1/AA scenarios use the 4-across train for the Inverted Roller Coaster.
- Fix: [#21332] Mini helicopters & monorail cycles ride types being swapped in research within RCT1 scenarios.
- Fix: [#21332] Mini Helicopters and Monorail Cycles ride types are swapped in research within RCT1 scenarios.
- Fix: [#21347] Too many options are hidden if the platform has no file picker.
0.4.8 (2024-02-04)
------------------------------------------------------------------------

View File

@ -649,7 +649,8 @@ private:
disabled_widgets = 0;
auto hasFilePicker = OpenRCT2::GetContext()->GetUiContext()->HasFilePicker();
if (!hasFilePicker)
const bool controlsTabSelected = (WIDX_FIRST_TAB + page) == WIDX_TAB_CONTROLS_AND_INTERFACE;
if (!hasFilePicker && controlsTabSelected)
{
disabled_widgets |= (1uLL << WIDX_ALWAYS_NATIVE_LOADSAVE);
widgets[WIDX_ALWAYS_NATIVE_LOADSAVE].type = WindowWidgetType::Empty;