diff --git a/src/app/file_list.rs b/src/app/file_list.rs index 4792e3c..23414c6 100644 --- a/src/app/file_list.rs +++ b/src/app/file_list.rs @@ -164,10 +164,11 @@ impl App { /// editor rather than leaving an empty column. pub(super) fn left_pane(&mut self, ctx: &egui::Context) { let show_files = self.config.show_file_panel; - egui::SidePanel::left("files") - .resizable(true) - .width_range(260.0..=600.0) - .show_animated(ctx, show_files, |ui| { + if show_files { + egui::SidePanel::left("files") + .resizable(true) + .width_range(260.0..=600.0) + .show(ctx, |ui| { // The default theme renders unselected list rows fairly dim; bump // the widget text colours so file names stay legible (especially in // dark mode) without affecting the rest of the app. @@ -604,6 +605,7 @@ impl App { }); } }); + } } }