Skip to content

Commit

Permalink
Fix heading places (fluxxcode#180)
Browse files Browse the repository at this point in the history
* Fix heading places

* Update changelog
  • Loading branch information
fluxxcode authored Oct 27, 2024
1 parent 89f8f00 commit 81909dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
- Added `FileDialog::active_selected_entries` and `FileDialog::active_entry` to get information about the current active item/s [#170](https://github.com/fluxxcode/egui-file-dialog/pull/170) (thanks [@crumblingstatue](https://github.com/crumblingstatue)!)
- Added option to show system files in the hamburger menu [#173](https://github.com/fluxxcode/egui-file-dialog/pull/173) (thanks [@crumblingstatue](https://github.com/crumblingstatue)!)

### 🐛 Bug Fixes
- Fixed heading `Places` not being able to be updated with `FileDialogLabels` [#180](https://github.com/fluxxcode/egui-file-dialog/pull/180)

### 🔧 Changes
- Use path edit as file to save [#160](https://github.com/fluxxcode/egui-file-dialog/pull/160)
- Updated sysinfo to version `0.32` [#161](https://github.com/fluxxcode/egui-file-dialog/pull/161)
Expand Down
3 changes: 2 additions & 1 deletion src/file_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,7 @@ impl FileDialog {
ui.with_layout(egui::Layout::top_down_justified(egui::Align::LEFT), |ui| {
// Spacing multiplier used between sections in the left sidebar
const SPACING_MULTIPLIER: f32 = 4.0;

egui::containers::ScrollArea::vertical()
.auto_shrink([false, false])
.show(ui, |ui| {
Expand Down Expand Up @@ -1687,7 +1688,7 @@ impl FileDialog {

if let Some(dirs) = &user_directories {
ui.add_space(spacing);
ui.label(self.config.labels.heading_places.as_str());
ui.label(labels.heading_places.as_str());

if let Some(path) = dirs.home_dir() {
self.ui_update_left_panel_entry(ui, &labels.home_dir, path);
Expand Down

0 comments on commit 81909dd

Please sign in to comment.