error_details: Set description instead of title
This commit is contained in:
parent
828306c206
commit
bb72324a64
3 changed files with 4 additions and 3 deletions
1
news.d/48.rc/fixed-error-detail-window
Normal file
1
news.d/48.rc/fixed-error-detail-window
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Set description instead of title for general errors, showing the complete and correct message.
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
|
|
@ -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.")),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue