mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 16:58:51 -05:00
* always display extension hint (in files and names list)
This commit is contained in:
parent
38ea14d86f
commit
07ee3306e2
@ -77,14 +77,17 @@ class RenameListCellRenderer extends DefaultFancyListCellRenderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (renameModel.preserveExtension()) {
|
||||||
|
typeRenderer.setText(getType(renameModel.getMatch(index).getCandidate()));
|
||||||
|
typeRenderer.setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
if (value instanceof File) {
|
if (value instanceof File) {
|
||||||
// display file extension
|
// display file extension
|
||||||
File file = (File) value;
|
File file = (File) value;
|
||||||
|
|
||||||
if (renameModel.preserveExtension()) {
|
if (renameModel.preserveExtension()) {
|
||||||
setText(FileUtilities.getName(file));
|
setText(FileUtilities.getName(file));
|
||||||
typeRenderer.setText(getType(file));
|
|
||||||
typeRenderer.setVisible(true);
|
|
||||||
} else {
|
} else {
|
||||||
setText(file.getName());
|
setText(file.getName());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user