From 266986c761878ca19abefc5a632a1047ff89c5cb Mon Sep 17 00:00:00 2001 From: Chris Maltby Date: Wed, 22 May 2024 13:12:13 +0100 Subject: [PATCH] Keep preference for using Piano Roll or Tracker view when switching between songs in music editor rather than switching to Piano Roll view --- CHANGELOG.md | 1 + src/store/features/tracker/trackerState.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70c64e5d1..fc163eb1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/store/features/tracker/trackerState.ts b/src/store/features/tracker/trackerState.ts index 906659822..945eebf5a 100644 --- a/src/store/features/tracker/trackerState.ts +++ b/src/store/features/tracker/trackerState.ts @@ -55,7 +55,7 @@ const trackerSlice = createSlice({ name: "tracker", initialState, reducers: { - init: () => initialState, + init: (state) => ({ ...initialState, view: state.view }), playTracker: (state, _action: PayloadAction) => { state.playing = true; },