summary message dialog improved

This commit is contained in:
Martin Brodbeck 2021-02-02 20:11:13 +01:00
parent 226ce76c16
commit 846ee16f6b

View file

@ -493,11 +493,25 @@ fn main() {
if cfg!(target_arch = "arm") {
if stat.authors_fixed == 0 {
if stat.drm_skipped == 0 {
pocketbook::dialog(
pocketbook::Icon::Info,
"The database seems to be ok.\nNothing had to be fixed.",
"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 {
pocketbook::dialog(
pocketbook::Icon::Info,