Better error messages (hopefully)
@see https://www.filebot.net/forums/viewtopic.php?f=10&t=4241
This commit is contained in:
parent
d39675c033
commit
7b1146f168
|
@ -438,16 +438,13 @@ class SubtitleAutoMatchDialog extends JDialog {
|
|||
if (value == null) {
|
||||
setText("Cancel selection");
|
||||
setIcon(ResourceManager.getIcon("dialog.cancel"));
|
||||
setToolTipText(null);
|
||||
} else {
|
||||
if (subtitleBean.getError() == null) {
|
||||
setText(subtitleBean.getText());
|
||||
setIcon(subtitleBean.getIcon());
|
||||
setToolTipText(null);
|
||||
} else {
|
||||
setText(String.format("%s (%s)", subtitleBean.getError().getMessage(), subtitleBean.getText()));
|
||||
setText(String.format("%s (%s)", subtitleBean.getError(), subtitleBean.getText()));
|
||||
setIcon(ResourceManager.getIcon("status.warning"));
|
||||
setToolTipText(subtitleBean.getError().toString());
|
||||
}
|
||||
|
||||
if (!isSelected) {
|
||||
|
|
Loading…
Reference in New Issue