1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 08:25:02 -04: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;
import static net.sourceforge.filebot.ui.NotificationLogging.*;
import static net.sourceforge.tuned.ui.TunedUtilities.*;
import java.awt.Cursor;
@ -40,12 +39,7 @@ class MatchAction extends AbstractAction {
}
public void actionPerformed(ActionEvent evt) {
if (model.files().isEmpty()) {
UILogger.info("Nothing to match. Please add some files and fetch data first.");
return;
}
if (model.names().isEmpty()) {
if (model.names().isEmpty() || model.files().isEmpty()) {
return;
}

View File

@ -211,7 +211,7 @@ public class RenamePanel extends JComponent {
@Override
public void actionPerformed(ActionEvent e) {
// 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);
}
}