Skip to content

Commit

Permalink
Clear inventory search state when switching menus (#1968)
Browse files Browse the repository at this point in the history
closes #1967
  • Loading branch information
nitinprakash96 authored Jun 21, 2024
1 parent eb156a6 commit 1cbc22e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/swarm-tui/Swarm/TUI/Model/StateUpdate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ scenarioToUIState isAutoplaying siPair@(scenario, _) gs u = do
& uiGameplay . uiGoal .~ emptyGoalDisplay
& uiGameplay . uiHideGoals .~ (isAutoplaying && not (u ^. uiCheatMode))
& uiGameplay . uiFocusRing .~ initFocusRing
& uiGameplay . uiInventory . uiInventorySearch .~ Nothing
& uiGameplay . uiInventory . uiInventoryList .~ Nothing
& uiGameplay . uiInventory . uiInventorySort .~ defaultSortOptions
& uiGameplay . uiInventory . uiShowZero .~ True
Expand Down

0 comments on commit 1cbc22e

Please sign in to comment.