util/root: Add window_show_error() to avoid unwrap

Fixes #553
This commit is contained in:
Sophie Herold 2025-12-09 22:04:58 +01:00
parent cfd33fa2dd
commit 83b2c7cae1
4 changed files with 18 additions and 16 deletions

View file

@ -359,7 +359,7 @@ impl LpEditCrop {
fn handle_error(&self, res: Result<(), EditingError>) {
if let Err(err) = res {
self.window().show_error(
self.window_show_error(
&gettext("Failed to Edit Image"),
&format!("Failed to edit image: {err}"),
ErrorType::General,