Skip to content

Commit

Permalink
Keep all dropdowns open when using Enlarged UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast committed May 7, 2024
1 parent 9242d87 commit 855bde9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openrct2-ui/windows/Dropdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ namespace OpenRCT2::Ui::Windows
int32_t width)
{
InputSetFlag(static_cast<INPUT_FLAGS>(INPUT_FLAG_DROPDOWN_STAY_OPEN | INPUT_FLAG_DROPDOWN_MOUSE_UP), false);
if (flags & Dropdown::Flag::StayOpen)
if (flags & Dropdown::Flag::StayOpen || gConfigInterface.TouchMode)

Check failure on line 347 in src/openrct2-ui/windows/Dropdown.cpp

View workflow job for this annotation

GitHub Actions / clang-tidy-check

clang-tidy: error

no member named 'TouchMode' in 'InterfaceConfiguration' [clang-diagnostic-error]
InputSetFlag(INPUT_FLAG_DROPDOWN_STAY_OPEN, true);

WindowDropdownClose();
Expand Down Expand Up @@ -376,7 +376,7 @@ namespace OpenRCT2::Ui::Windows
int32_t itemHeight, int32_t numColumns)
{
InputSetFlag(static_cast<INPUT_FLAGS>(INPUT_FLAG_DROPDOWN_STAY_OPEN | INPUT_FLAG_DROPDOWN_MOUSE_UP), false);
if (flags & Dropdown::Flag::StayOpen)
if (flags & Dropdown::Flag::StayOpen || gConfigInterface.TouchMode)

Check failure on line 379 in src/openrct2-ui/windows/Dropdown.cpp

View workflow job for this annotation

GitHub Actions / clang-tidy-check

clang-tidy: error

no member named 'TouchMode' in 'InterfaceConfiguration' [clang-diagnostic-error]
InputSetFlag(INPUT_FLAG_DROPDOWN_STAY_OPEN, true);

// Close existing dropdown
Expand Down

0 comments on commit 855bde9

Please sign in to comment.