Skip to content

Commit

Permalink
Modify the actual settings instead of a copy when updating base colors (
Browse files Browse the repository at this point in the history
fixes #1)
  • Loading branch information
nununoisy committed Sep 4, 2023
1 parent 60099c6 commit 96c9624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Renderer {
self.emulator.set_filter_enabled(self.options.filter_enabled);

for (i, color) in self.options.channel_base_colors.iter().enumerate() {
self.viz.borrow_mut().settings_manager_mut().settings(i).set_colors(&[color.clone()]);
self.viz.borrow_mut().settings_manager_mut().settings_mut(i).set_colors(&vec![color.clone()]);
}

for (source, pitch) in &self.options.manual_sample_tunings {
Expand Down

0 comments on commit 96c9624

Please sign in to comment.