Skip to content

Commit

Permalink
Keep preference for using Piano Roll or Tracker view when switching b…
Browse files Browse the repository at this point in the history
…etween songs in music editor rather than switching to Piano Roll view
  • Loading branch information
chrismaltby committed May 22, 2024
1 parent eee2fc5 commit 266986c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Update sidebar layout to prioritise giving scripts full sidebar width
- Update sidebar to preserve scroll position when switching between scenes/actors/triggers/scripts
- Update music editor to display compressed version of channel mute/visibility controls when not enough room to display fully
- Keep preference for using Piano Roll or Tracker view when switching between songs in music editor rather than switching to Piano Roll view

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion src/store/features/tracker/trackerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const trackerSlice = createSlice({
name: "tracker",
initialState,
reducers: {
init: () => initialState,
init: (state) => ({ ...initialState, view: state.view }),
playTracker: (state, _action: PayloadAction<void>) => {
state.playing = true;
},
Expand Down

0 comments on commit 266986c

Please sign in to comment.