feat: ordered paths

this isn't a very robust solution,
but it is efficent and works on basic filenames.
This commit is contained in:
electria 2026-08-09 13:43:54 -07:00
commit 0c8149bd53
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -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,