Skip to content

Commit

Permalink
Fix: too many options are hidden if the platform has no file picker
Browse files Browse the repository at this point in the history
Mainly affects Android.

Co-authored-by: Basssiiie <Basssiiie@users.noreply.github.com>
  • Loading branch information
Gymnasiast and Basssiiie committed Feb 7, 2024
1 parent c9fe19e commit 76abe7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions distribution/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
0.4.9 (in development)
------------------------------------------------------------------------
- Fix: [#20907] RCT1/AA scenarios use the 4-across train for the Inverted Roller Coaster.
- Fix: Too many options are hidden if the platform has no file picker.

0.4.8 (2024-02-04)
------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion src/openrct2-ui/windows/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,8 @@ class OptionsWindow final : public Window

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;
Expand Down

0 comments on commit 76abe7a

Please sign in to comment.