1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00
This commit is contained in:
Reinhard Pointner 2016-04-08 22:59:23 +00:00
parent 5bbc697a76
commit 3bd1655136

View File

@ -18,8 +18,6 @@ import java.awt.datatransfer.Transferable;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.File;
import java.util.ArrayList;
import java.util.EnumSet;
@ -804,17 +802,12 @@ public class RenamePanel extends JComponent {
public AutoCompleteAction(String name, Icon icon, AutoCompleteMatcher matcher) {
super(name, icon);
this.matcher = matcher;
// disable action while episode list matcher is working
namesList.addPropertyChangeListener(LOADING_PROPERTY, new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
namesList.addPropertyChangeListener(LOADING_PROPERTY, evt -> {
// disable action while loading is in progress
setEnabled(!(Boolean) evt.getNewValue());
}
});
}
@ -896,7 +889,6 @@ public class RenamePanel extends JComponent {
// auto-match in progress
namesList.firePropertyChange(LOADING_PROPERTY, false, true);
worker.execute();
}