diff --git a/news.d/48.rc/fixed-error-detail-window b/news.d/48.rc/fixed-error-detail-window new file mode 100644 index 0000000..ab538cb --- /dev/null +++ b/news.d/48.rc/fixed-error-detail-window @@ -0,0 +1 @@ +Set description instead of title for general errors, showing the complete and correct message. diff --git a/src/widgets/edit_window.rs b/src/widgets/edit_window.rs index 3fe349f..5e9a7c8 100644 --- a/src/widgets/edit_window.rs +++ b/src/widgets/edit_window.rs @@ -356,7 +356,7 @@ mod imp { obj.window().show_error( &gettext("Failed to edit image."), &format!("Failed to edit image:\n\n{err}\n\n{operations:#?}"), - ErrorType::General, + ErrorType::Loader, ) } Ok(binary_data) => { diff --git a/src/widgets/error_details.rs b/src/widgets/error_details.rs index a67fe27..a9dafee 100644 --- a/src/widgets/error_details.rs +++ b/src/widgets/error_details.rs @@ -76,8 +76,8 @@ impl LpErrorDetails { imp.message.buffer().set_text(text); if matches!(type_, ErrorType::General) { - imp.preference_group.set_title( - &gettext( "The following error occurred. If you think this is an issue with the program, please include this information when you report the error."), + imp.preference_group.set_description( + Some(&gettext( "The following error occurred. If you think this is an issue with the program, please include this information when you report the error.")), ); }