Add templates to settings dialog incl load validate save. Edit buttons are in place but currently do nothing
This commit is contained in:
parent
d20517063e
commit
d0051c0f02
4 changed files with 232 additions and 36 deletions
|
|
@ -147,6 +147,8 @@ namespace LibationFileManager
|
|||
set => persistentDictionary.SetNonString(nameof(DownloadEpisodes), value);
|
||||
}
|
||||
|
||||
#region templates: custom file naming
|
||||
|
||||
[Description("How to format the folders in which files will be saved")]
|
||||
public string FolderTemplate
|
||||
{
|
||||
|
|
@ -161,7 +163,7 @@ namespace LibationFileManager
|
|||
set => setTemplate(nameof(FileTemplate), Templates.File, value);
|
||||
}
|
||||
|
||||
[Description("How to format the saved audio files which are split by chapters")]
|
||||
[Description("How to format the saved audio files when split by chapters")]
|
||||
public string ChapterFileTemplate
|
||||
{
|
||||
get => getTemplate(nameof(ChapterFileTemplate), Templates.ChapterFile);
|
||||
|
|
@ -181,6 +183,8 @@ namespace LibationFileManager
|
|||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region known directories
|
||||
public static string AppDir_Relative => $@".\{LIBATION_FILES_KEY}";
|
||||
public static string AppDir_Absolute => Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Exe.FileLocationOnDisk), LIBATION_FILES_KEY));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue