1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 08:48:51 -05:00

* replace warnings with user guidance

This commit is contained in:
Reinhard Pointner 2013-12-05 02:13:05 +00:00
parent 35d343425a
commit 2c30728e61
2 changed files with 2 additions and 8 deletions

View File

@ -1,6 +1,5 @@
package net.sourceforge.filebot.ui.rename; package net.sourceforge.filebot.ui.rename;
import static net.sourceforge.filebot.ui.NotificationLogging.*;
import static net.sourceforge.tuned.ui.TunedUtilities.*; import static net.sourceforge.tuned.ui.TunedUtilities.*;
import java.awt.Cursor; import java.awt.Cursor;
@ -40,12 +39,7 @@ class MatchAction extends AbstractAction {
} }
public void actionPerformed(ActionEvent evt) { public void actionPerformed(ActionEvent evt) {
if (model.files().isEmpty()) { if (model.names().isEmpty() || model.files().isEmpty()) {
UILogger.info("Nothing to match. Please add some files and fetch data first.");
return;
}
if (model.names().isEmpty()) {
return; return;
} }

View File

@ -211,7 +211,7 @@ public class RenamePanel extends JComponent {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
// show popup on actionPerformed only when names list is empty // show popup on actionPerformed only when names list is empty
if (renameModel.files().size() > 0 && renameModel.names().isEmpty()) { if (renameModel.names().isEmpty()) {
fetchPopupAction.actionPerformed(e); fetchPopupAction.actionPerformed(e);
} }
} }