fix: display any errors that occur on start
This commit is contained in:
parent
831def32a4
commit
02e470b317
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ impl State {
|
||||||
fn new() -> (Self, Task<Message>) {
|
fn new() -> (Self, Task<Message>) {
|
||||||
let mut state = State::default();
|
let mut state = State::default();
|
||||||
|
|
||||||
env::args().nth(1).and_then(|path| state.load_image(path));
|
state.error = env::args().nth(1).and_then(|path| state.load_image(path));
|
||||||
let allocate_image = state.allocate_image();
|
let allocate_image = state.allocate_image();
|
||||||
|
|
||||||
(state, allocate_image)
|
(state, allocate_image)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue