fix: hidden error

This commit is contained in:
electria 2026-07-27 21:14:22 -07:00
commit 60717d639c
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -145,13 +145,13 @@ impl State {
}
#[must_use]
fn pick_and_load_image(&mut self) -> Task<Message> {
let task;
(self.error, task) = match utils::pick_image() {
Ok(path) => (None, self.load_image(path)),
Err(e) => (Some(e), Task::none()),
};
task
match utils::pick_image() {
Ok(path) => self.load_image(path),
Err(e) => {
self.error = Some(e);
Task::none()
}
}
}
fn save_image(&mut self) {