Small corrections

This commit is contained in:
2026-02-08 01:33:50 +01:00
parent af6016b9a9
commit f6e7330ad6
20 changed files with 288 additions and 49 deletions

View File

@@ -22,7 +22,7 @@ use crate::settings::Settings;
use crate::state::{
AudioSettings, CyclicEnum, EditorContext, EditorTarget, FlashKind, LiveKeyState, Metrics,
Modal, MuteState, OptionsState, PanelState, PatternField, PatternPropsField, PatternsNav,
PlaybackState, ProjectState, StagedChange, StagedPropChange, UiState,
PlaybackState, ProjectState, SampleTree, StagedChange, StagedPropChange, UiState,
};
const STEPS_PER_PAGE: usize = 32;
@@ -328,6 +328,8 @@ impl App {
self.editor_ctx
.editor
.set_completion_enabled(self.ui.show_completion);
let tree = SampleTree::from_paths(&self.audio.config.sample_paths);
self.editor_ctx.editor.set_sample_folders(tree.all_folder_names());
if self.editor_ctx.show_stack {
crate::services::stack_preview::update_cache(&self.editor_ctx);
}
@@ -359,6 +361,8 @@ impl App {
self.editor_ctx
.editor
.set_completion_enabled(self.ui.show_completion);
let tree = SampleTree::from_paths(&self.audio.config.sample_paths);
self.editor_ctx.editor.set_sample_folders(tree.all_folder_names());
self.editor_ctx.target = EditorTarget::Prelude;
self.ui.modal = Modal::Editor;
}