Skip to content

Commit

Permalink
Update ui.py
Browse files Browse the repository at this point in the history
Disable trigger button when in page select mode
  • Loading branch information
HLammers committed Nov 16, 2024
1 parent cad1247 commit d365a55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,10 @@ def process_user_input(self) -> None:
continue
# if button_number == _BUTTON_TRIGGER_CONFIRM
if self.active_pop_up is None:
if value == _BUTTON_EVENT_PRESS: # short-press of trigger button
page_select_mode = self.page_select_mode
if value == _BUTTON_EVENT_PRESS and not page_select_mode: # short-press of trigger button and not in page select mode
_router.trigger() # type: ignore
elif value == _BUTTON_EVENT_LONG_PRESS: # long-press of trigger button
elif value == _BUTTON_EVENT_LONG_PRESS and not page_select_mode: # long-press of trigger button and not in page select mode
options = []
input_devices_tuple_assigned = _router.input_devices_tuple_assigned # type: ignore
input_presets_tuples = _router.input_presets_tuples # type: ignore
Expand Down

0 comments on commit d365a55

Please sign in to comment.