Skip to content

Commit

Permalink
Fix the New menu panicking when the song is already new
Browse files Browse the repository at this point in the history
has_stub_pattern being true would prevent adding a stub for the initial pattern.
  • Loading branch information
jturcotte committed Nov 5, 2024
1 parent 1c33daf commit b3caa49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b3caa49

Please sign in to comment.