editing: Add error handling for saving files

This commit is contained in:
Sophie Herold 2024-12-18 01:29:14 +01:00
parent 3f82a5f435
commit 5b51237203
8 changed files with 167 additions and 29 deletions

View file

@ -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,
);
}
));