From b3caa49ff587d66a63925ad1f6dc5c7f315e0e22 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Tue, 5 Nov 2024 22:17:56 +0100 Subject: [PATCH] Fix the New menu panicking when the song is already new has_stub_pattern being true would prevent adding a stub for the initial pattern. --- src/sequencer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sequencer.rs b/src/sequencer.rs index 8bf433c..b124afe 100644 --- a/src/sequencer.rs +++ b/src/sequencer.rs @@ -1873,6 +1873,7 @@ impl Sequencer { self.set_recording(false); self.set_playing(false, false); + self.has_stub_pattern = false; self.song = song; let song_patterns = self.song.song_patterns.clone();