fix: hidden error
This commit is contained in:
parent
ab24e5f10d
commit
60717d639c
1 changed files with 7 additions and 7 deletions
14
src/main.rs
14
src/main.rs
|
|
@ -145,13 +145,13 @@ impl State {
|
||||||
}
|
}
|
||||||
#[must_use]
|
#[must_use]
|
||||||
fn pick_and_load_image(&mut self) -> Task<Message> {
|
fn pick_and_load_image(&mut self) -> Task<Message> {
|
||||||
let task;
|
match utils::pick_image() {
|
||||||
(self.error, task) = match utils::pick_image() {
|
Ok(path) => self.load_image(path),
|
||||||
Ok(path) => (None, self.load_image(path)),
|
Err(e) => {
|
||||||
Err(e) => (Some(e), Task::none()),
|
self.error = Some(e);
|
||||||
};
|
Task::none()
|
||||||
|
}
|
||||||
task
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn save_image(&mut self) {
|
fn save_image(&mut self) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue