1
0
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:
Reinhard Pointner 2012-02-15 05:48:34 +00:00
parent 38ea14d86f
commit 07ee3306e2

View File

@ -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());
} }