Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger committed Aug 28, 2023
1 parent 45b80f4 commit 16943d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ log = "0.4"
env_logger = "0.10.0"

image = { version = "0.24", features = ["jpeg", "png", "gif", "bmp"] }
#icy_engine = { git = "https://github.com/mkrueger/icy_engine.git" }
icy_engine = { path ="../icy_engine" }
icy_engine = { git = "https://github.com/mkrueger/icy_engine.git" }
#icy_engine = { path ="../icy_engine" }

#icy_engine_egui = { git ="https://github.com/mkrueger/icy_engine_egui" }
icy_engine_egui = { path ="../icy_engine_egui" }
icy_engine_egui = { git ="https://github.com/mkrueger/icy_engine_egui" }
#icy_engine_egui = { path ="../icy_engine_egui" }

[build-dependencies]
winres = "0.1"
Expand Down
8 changes: 5 additions & 3 deletions src/ui/file_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl FileView {
self.refresh();
}
});

match self.path.to_str() {
Some(path) => {
let mut path_edit = path.to_string();
Expand All @@ -104,12 +104,14 @@ impl FileView {
self.refresh();
}
ui.separator();
ui.add_sized([250.0, 20.0], TextEdit::singleline(&mut self.filter).hint_text("Filter entries"));
ui.add_sized(
[250.0, 20.0],
TextEdit::singleline(&mut self.filter).hint_text("Filter entries"),
);
let response = ui.button("🗙").on_hover_text("Reset filter");
if response.clicked() {
self.filter.clear();
}

});
ui.add_space(ui.spacing().item_spacing.y);

Expand Down

0 comments on commit 16943d5

Please sign in to comment.