mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
* fix file formatter
This commit is contained in:
parent
a812f70ef3
commit
e06e50418c
@ -142,7 +142,8 @@ public class RenamePanel extends JComponent {
|
||||
// restore custom music formatter
|
||||
renameModel.useFormatter(File.class, new ExpressionFormatter(persistentFileFormat.getValue(), new FileNameFormat(), File.class));
|
||||
} catch (Exception e) {
|
||||
// use default FileInfo formatter as fallback
|
||||
// make sure to put File formatter at position 3
|
||||
renameModel.useFormatter(File.class, new FileNameFormatter(renameModel.preserveExtension()));
|
||||
} finally {
|
||||
// use default filename formatter
|
||||
renameModel.useFormatter(FileInfo.class, new FileNameFormatter(renameModel.preserveExtension()));
|
||||
|
Loading…
Reference in New Issue
Block a user