GP-4919: Improving Load Libraries results dialog for programs with no

libraries
This commit is contained in:
Ryan Kurtz 2024-09-30 06:30:45 -04:00
parent 22f95a5eba
commit 71d378655e

View File

@ -80,11 +80,16 @@ public class LoadLibrariesOptionsDialog extends OptionsDialog {
// Display results
String importMessages = messageLog.toString();
if (!Loader.loggingDisabled && !importMessages.isEmpty()) {
Msg.info(ImporterUtilities.class, TITLE + ":\n" + importMessages);
if (!importMessages.isEmpty()) {
if (!Loader.loggingDisabled) {
Msg.info(ImporterUtilities.class, TITLE + ":\n" + importMessages);
}
MultiLineMessageDialog.showModalMessageDialog(null, TITLE, "Results",
importMessages, MultiLineMessageDialog.INFORMATION_MESSAGE);
}
else {
Msg.showInfo(this, null, TITLE, "The program has no libraries.");
}
MultiLineMessageDialog.showModalMessageDialog(null, TITLE, "Results",
importMessages, MultiLineMessageDialog.INFORMATION_MESSAGE);
loadResults.release(consumer);
}