From e547c9db19084c4ecbfe81817e004064edd1c870 Mon Sep 17 00:00:00 2001 From: Esther Alter Date: Wed, 29 May 2024 12:15:19 -0400 Subject: [PATCH] Fixed: When you save a new file, the panel will list children in the save directory's parent folder. --- changelog.md | 1 + io/src/open_file_panel.rs | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 052e23f..42ed7f3 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,7 @@ - Fixed: Cacophony can't found files (saves, soundfonts, etc.) if the file extension contains uppercase characters. - Fixed: ChildPaths sometimes doesn't set the correct directory when moving up a directory. - Fixed: It's possible to add notes while the music is playing. +- Fixed: When you save a new file, the panel will list files and folders in the save directory's parent folder. - (Backend) Fixed clippy warnings for Rust 1.78 - (Backend) The GitHub workflow for building Cacophony now uses the latest version of Rust. - (Backend) Added tests for ChildPaths. diff --git a/io/src/open_file_panel.rs b/io/src/open_file_panel.rs index 7aec5ad..a51d07c 100644 --- a/io/src/open_file_panel.rs +++ b/io/src/open_file_panel.rs @@ -53,9 +53,6 @@ impl OpenFilePanel { /// Enable the panel for setting the save path to be written to. pub fn write_save(&mut self, state: &mut State, paths_state: &mut PathsState) { self.enable_as_save(OpenFileType::WriteSave, state, paths_state); - paths_state - .children - .set(&paths_state.midis.directory.path, &Extension::Cac, None); } /// Enable a panel for setting the export path.