diff --git a/inspireatomclientdialog.py b/inspireatomclientdialog.py index 52bc369..a57f8e8 100644 --- a/inspireatomclientdialog.py +++ b/inspireatomclientdialog.py @@ -577,17 +577,31 @@ def load_downloaded_files(self): successful.append(downloaded_file) message = "" - if len(successful) > 0: - message += "
Successfully loaded:
"
+ msgbox_function = QMessageBox.information
+ n_successful = len(successful)
+ if n_successful > 0:
+ message += "
Successfully loaded {0} file(s):
".format(len(successful))
+ n = 0
for successful_file in successful:
+ n += 1
message += successful_file + "
"
+ if 10 <= n < n_successful:
+ message += "...and {0} more".format(n_successful - n)
+ break
message += "
Failed to load:
"
+ n_failed = len(failed)
+ if n_failed > 0:
+ message += "
Failed to load {0} files(s):
".format(len(failed))
+ n = 0
for failed_file in failed:
+ n += 1
message += failed_file + "
"
+ if 10 <= n < n_failed:
+ message += "...and {0} more".format(n_failed - n)
+ break
message += "