mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48: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) {
|
||||
// display file extension
|
||||
File file = (File) value;
|
||||
|
||||
if (renameModel.preserveExtension()) {
|
||||
setText(FileUtilities.getName(file));
|
||||
typeRenderer.setText(getType(file));
|
||||
typeRenderer.setVisible(true);
|
||||
} else {
|
||||
setText(file.getName());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user