feat: ordered paths
this isn't a very robust solution, but it is efficent and works on basic filenames.
This commit is contained in:
parent
6312d0a610
commit
0c8149bd53
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
use std::{borrow::Cow, collections::HashMap, env, path::PathBuf, process};
|
use std::{borrow::Cow, collections::BTreeMap, env, path::PathBuf, process};
|
||||||
|
|
||||||
use iced::{
|
use iced::{
|
||||||
Color, Element, Event, Length, Renderer, Subscription, Task, Theme, application, event,
|
Color, Element, Event, Length, Renderer, Subscription, Task, Theme, application, event,
|
||||||
|
|
@ -21,7 +21,7 @@ enum Message {
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct State {
|
struct State {
|
||||||
images: HashMap<PathBuf, Option<widget::image::Handle>>,
|
images: BTreeMap<PathBuf, Option<widget::image::Handle>>,
|
||||||
|
|
||||||
columns: usize,
|
columns: usize,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue