Skip to content

Commit

Permalink
fixed issue with layoutmanager crashing when dismissing the quick set… (
Browse files Browse the repository at this point in the history
#951)

* fixed issue with layoutmanager crashing when dismissing the quick settings

* Update HandheldCompanion/Managers/LayoutManager.cs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
indiesaudi and coderabbitai[bot] authored Jan 16, 2024
1 parent 5c9d14d commit 81e3e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HandheldCompanion/Managers/LayoutManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public static ControllerState MapController(ControllerState controllerState)
if (action.actionState == ActionState.Aborted)
{
int idx = sortedActions.IndexOf(action);
if (idx < sortedActions.Count)
if (idx < sortedActions.Count - 1)
{
IActions nAction = sortedActions[idx + 1]; // next action
if (nAction.Interruptable)
Expand Down

0 comments on commit 81e3e0f

Please sign in to comment.