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:
parent
35d343425a
commit
2c30728e61
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user