error_details: Set description instead of title

This commit is contained in:
Sophie Herold 2025-02-13 22:08:13 +01:00
parent 828306c206
commit bb72324a64
3 changed files with 4 additions and 3 deletions

View file

@ -0,0 +1 @@
Set description instead of title for general errors, showing the complete and correct message.

View file

@ -356,7 +356,7 @@ mod imp {
obj.window().show_error( obj.window().show_error(
&gettext("Failed to edit image."), &gettext("Failed to edit image."),
&format!("Failed to edit image:\n\n{err}\n\n{operations:#?}"), &format!("Failed to edit image:\n\n{err}\n\n{operations:#?}"),
ErrorType::General, ErrorType::Loader,
) )
} }
Ok(binary_data) => { Ok(binary_data) => {

View file

@ -76,8 +76,8 @@ impl LpErrorDetails {
imp.message.buffer().set_text(text); imp.message.buffer().set_text(text);
if matches!(type_, ErrorType::General) { if matches!(type_, ErrorType::General) {
imp.preference_group.set_title( imp.preference_group.set_description(
&gettext( "The following error occurred. If you think this is an issue with the program, please include this information when you report the error."), 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.")),
); );
} }