editing: Add error handling for saving files
This commit is contained in:
parent
3f82a5f435
commit
5b51237203
8 changed files with 167 additions and 29 deletions
|
|
@ -255,7 +255,11 @@ impl LpImagePage {
|
|||
#[weak(rename_to = obj)]
|
||||
self,
|
||||
move |_| {
|
||||
LpErrorDetails::new(&obj.root().unwrap(), &err);
|
||||
LpErrorDetails::new(
|
||||
&obj.root().unwrap(),
|
||||
&err,
|
||||
super::error_details::ErrorType::Loader,
|
||||
);
|
||||
}
|
||||
));
|
||||
}
|
||||
|
|
@ -267,7 +271,11 @@ impl LpImagePage {
|
|||
#[weak(rename_to = obj)]
|
||||
self,
|
||||
move |_| {
|
||||
LpErrorDetails::new(&obj.root().unwrap(), &err);
|
||||
LpErrorDetails::new(
|
||||
&obj.root().unwrap(),
|
||||
&err,
|
||||
super::error_details::ErrorType::Loader,
|
||||
);
|
||||
}
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue