Skip to content

Commit

Permalink
fix panic on grid selection
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergodart committed Oct 21, 2024
1 parent 7b2083e commit 1e9f029
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ func (m mainModel) loadGridFromBank() mainModel {
isPlaying := m.grid.Playing
m.grid.Load(m.bank.ActiveGrid())
m.grid.Playing = isPlaying
m.cursorX = 1
m.cursorY = 1
m.selectionX = 1
m.selectionY = 1
return m.windowResize(m.viewport.Width, m.viewport.Height)
}

Expand Down

0 comments on commit 1e9f029

Please sign in to comment.