mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
Refactor
This commit is contained in:
parent
2cb0d355a6
commit
d5e258a9d9
@ -391,14 +391,10 @@ class RenameAction extends AbstractAction {
|
||||
}
|
||||
}
|
||||
|
||||
// collect renamed types
|
||||
List<Class<?>> types = new ArrayList<Class<?>>();
|
||||
|
||||
// remove renamed matches
|
||||
for (File source : renameLog.keySet()) {
|
||||
// find index of source file
|
||||
int index = model.files().indexOf(source);
|
||||
types.add(model.values().get(index).getClass());
|
||||
|
||||
// remove complete match
|
||||
model.matches().remove(index);
|
||||
|
@ -77,15 +77,12 @@ class ValidateDialog extends JDialog {
|
||||
}
|
||||
});
|
||||
|
||||
JLabel label = new JLabel("Some names contain invalid characters:");
|
||||
JLabel label = new JLabel("Some filenames contain invalid characters:");
|
||||
|
||||
JComponent content = (JComponent) getContentPane();
|
||||
|
||||
content.setLayout(new MigLayout("insets dialog, nogrid, fill", "", "[pref!][fill][pref!]"));
|
||||
|
||||
content.add(label, "wrap");
|
||||
content.add(new JScrollPane(list), "grow, wrap 2mm");
|
||||
|
||||
content.add(new JButton(validateAction), "align center");
|
||||
content.add(new JButton(continueAction), "gap related");
|
||||
content.add(new JButton(cancelAction), "gap 12mm");
|
||||
|
Loading…
Reference in New Issue
Block a user