Merge pull request #699 from Mbucari/master
Fix broken template editor (#698)
This commit is contained in:
commit
32c3fa85ce
@ -60,6 +60,7 @@ namespace LibationFileManager
|
|||||||
DatePublished = new DateTime(2017, 2, 27, 0, 0, 0),
|
DatePublished = new DateTime(2017, 2, 27, 0, 0, 0),
|
||||||
AudibleProductId = "123456789",
|
AudibleProductId = "123456789",
|
||||||
Title = "A Study in Scarlet",
|
Title = "A Study in Scarlet",
|
||||||
|
TitleWithSubtitle = "A Study in Scarlet: A Sherlock Holmes Novel",
|
||||||
Subtitle = "A Sherlock Holmes Novel",
|
Subtitle = "A Sherlock Holmes Novel",
|
||||||
Locale = "us",
|
Locale = "us",
|
||||||
YearPublished = 2017,
|
YearPublished = 2017,
|
||||||
@ -124,6 +125,11 @@ namespace LibationFileManager
|
|||||||
if (!templateEditor.IsFolder && !templateEditor.IsFilePath)
|
if (!templateEditor.IsFolder && !templateEditor.IsFilePath)
|
||||||
throw new InvalidOperationException($"This method is only for File and Folder templates. Use {nameof(CreateNameEditor)} for name templates");
|
throw new InvalidOperationException($"This method is only for File and Folder templates. Use {nameof(CreateNameEditor)} for name templates");
|
||||||
|
|
||||||
|
if (templateEditor.IsFolder)
|
||||||
|
templateEditor.File = Templates.File;
|
||||||
|
else
|
||||||
|
templateEditor.Folder = Templates.Folder;
|
||||||
|
|
||||||
return templateEditor;
|
return templateEditor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user