summary message dialog improved

This commit is contained in:
Martin Brodbeck 2021-02-02 20:11:13 +01:00
parent 226ce76c16
commit 846ee16f6b
1 changed files with 19 additions and 5 deletions

View File

@ -493,11 +493,25 @@ fn main() {
if cfg!(target_arch = "arm") { if cfg!(target_arch = "arm") {
if stat.authors_fixed == 0 { if stat.authors_fixed == 0 {
pocketbook::dialog( if stat.drm_skipped == 0 {
pocketbook::Icon::Info, pocketbook::dialog(
"The database seems to be ok.\nNothing had to be fixed.", pocketbook::Icon::Info,
&["OK"], "The database seems to be ok.\n\
); Nothing had to be fixed.",
&["OK"],
);
} else {
pocketbook::dialog(
pocketbook::Icon::Info,
&format!(
"The database seems to be ok.\n\
Nothing had to be fixed.\n\
(Books skipped (DRM): {})",
&stat.drm_skipped
),
&["OK"],
);
}
} else { } else {
pocketbook::dialog( pocketbook::dialog(
pocketbook::Icon::Info, pocketbook::Icon::Info,