settings descriptions
This commit is contained in:
parent
c437a39a82
commit
be5e18d977
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<Version>6.2.0.1</Version>
|
<Version>6.2.1.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -58,6 +58,7 @@ namespace AppScaffolding
|
|||||||
Migrations.migrate_to_v5_2_0__post_config(config);
|
Migrations.migrate_to_v5_2_0__post_config(config);
|
||||||
Migrations.migrate_to_v5_7_1(config);
|
Migrations.migrate_to_v5_7_1(config);
|
||||||
Migrations.migrate_to_v6_1_2(config);
|
Migrations.migrate_to_v6_1_2(config);
|
||||||
|
Migrations.migrate_to_v6_2_0(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Initialize logging. Run after migration</summary>
|
/// <summary>Initialize logging. Run after migration</summary>
|
||||||
@ -337,5 +338,12 @@ namespace AppScaffolding
|
|||||||
if (!config.Exists(nameof(config.ImportEpisodes)))
|
if (!config.Exists(nameof(config.ImportEpisodes)))
|
||||||
config.ImportEpisodes = true;
|
config.ImportEpisodes = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add config.SplitFilesByChapter
|
||||||
|
public static void migrate_to_v6_2_0(Configuration config)
|
||||||
|
{
|
||||||
|
if (!config.Exists(nameof(config.SplitFilesByChapter)))
|
||||||
|
config.SplitFilesByChapter = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,7 +88,7 @@ namespace FileManager
|
|||||||
set => persistentDictionary.SetString(nameof(InProgress), value);
|
set => persistentDictionary.SetString(nameof(InProgress), value);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Description("Allow Libation for fix up audiobook metadata?")]
|
[Description("Allow Libation to fix up audiobook metadata")]
|
||||||
public bool AllowLibationFixup
|
public bool AllowLibationFixup
|
||||||
{
|
{
|
||||||
get => persistentDictionary.GetNonString<bool>(nameof(AllowLibationFixup));
|
get => persistentDictionary.GetNonString<bool>(nameof(AllowLibationFixup));
|
||||||
@ -102,7 +102,7 @@ namespace FileManager
|
|||||||
set => persistentDictionary.SetNonString(nameof(DecryptToLossy), value);
|
set => persistentDictionary.SetNonString(nameof(DecryptToLossy), value);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Description("Split my books into multi files by cahpter")]
|
[Description("Split my books into multiple files by chapter")]
|
||||||
public bool SplitFilesByChapter
|
public bool SplitFilesByChapter
|
||||||
{
|
{
|
||||||
get => persistentDictionary.GetNonString<bool>(nameof(SplitFilesByChapter));
|
get => persistentDictionary.GetNonString<bool>(nameof(SplitFilesByChapter));
|
||||||
|
|||||||
@ -217,9 +217,9 @@
|
|||||||
this.splitFilesByChapterCbox.AutoSize = true;
|
this.splitFilesByChapterCbox.AutoSize = true;
|
||||||
this.splitFilesByChapterCbox.Location = new System.Drawing.Point(6, 46);
|
this.splitFilesByChapterCbox.Location = new System.Drawing.Point(6, 46);
|
||||||
this.splitFilesByChapterCbox.Name = "splitFilesByChapterCbox";
|
this.splitFilesByChapterCbox.Name = "splitFilesByChapterCbox";
|
||||||
this.splitFilesByChapterCbox.Size = new System.Drawing.Size(258, 19);
|
this.splitFilesByChapterCbox.Size = new System.Drawing.Size(162, 19);
|
||||||
this.splitFilesByChapterCbox.TabIndex = 13;
|
this.splitFilesByChapterCbox.TabIndex = 13;
|
||||||
this.splitFilesByChapterCbox.Text = "Split my books into multiple files by chapter";
|
this.splitFilesByChapterCbox.Text = "[SplitFilesByChapter desc]";
|
||||||
this.splitFilesByChapterCbox.UseVisualStyleBackColor = true;
|
this.splitFilesByChapterCbox.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// allowLibationFixupCbox
|
// allowLibationFixupCbox
|
||||||
@ -229,9 +229,9 @@
|
|||||||
this.allowLibationFixupCbox.CheckState = System.Windows.Forms.CheckState.Checked;
|
this.allowLibationFixupCbox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
this.allowLibationFixupCbox.Location = new System.Drawing.Point(6, 22);
|
this.allowLibationFixupCbox.Location = new System.Drawing.Point(6, 22);
|
||||||
this.allowLibationFixupCbox.Name = "allowLibationFixupCbox";
|
this.allowLibationFixupCbox.Name = "allowLibationFixupCbox";
|
||||||
this.allowLibationFixupCbox.Size = new System.Drawing.Size(262, 19);
|
this.allowLibationFixupCbox.Size = new System.Drawing.Size(163, 19);
|
||||||
this.allowLibationFixupCbox.TabIndex = 10;
|
this.allowLibationFixupCbox.TabIndex = 10;
|
||||||
this.allowLibationFixupCbox.Text = "Allow Libation to fix up audiobook metadata";
|
this.allowLibationFixupCbox.Text = "[AllowLibationFixup desc]";
|
||||||
this.allowLibationFixupCbox.UseVisualStyleBackColor = true;
|
this.allowLibationFixupCbox.UseVisualStyleBackColor = true;
|
||||||
this.allowLibationFixupCbox.CheckedChanged += new System.EventHandler(this.allowLibationFixupCbox_CheckedChanged);
|
this.allowLibationFixupCbox.CheckedChanged += new System.EventHandler(this.allowLibationFixupCbox_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
|||||||
@ -30,6 +30,8 @@ namespace LibationWinForms.Dialogs
|
|||||||
this.downloadEpisodesCb.Text = desc(nameof(config.DownloadEpisodes));
|
this.downloadEpisodesCb.Text = desc(nameof(config.DownloadEpisodes));
|
||||||
this.booksLocationDescLbl.Text = desc(nameof(config.Books));
|
this.booksLocationDescLbl.Text = desc(nameof(config.Books));
|
||||||
this.inProgressDescLbl.Text = desc(nameof(config.InProgress));
|
this.inProgressDescLbl.Text = desc(nameof(config.InProgress));
|
||||||
|
this.allowLibationFixupCbox.Text = desc(nameof(config.AllowLibationFixup));
|
||||||
|
this.splitFilesByChapterCbox.Text = desc(nameof(config.SplitFilesByChapter));
|
||||||
|
|
||||||
booksSelectControl.SetSearchTitle("books location");
|
booksSelectControl.SetSearchTitle("books location");
|
||||||
booksSelectControl.SetDirectoryItems(
|
booksSelectControl.SetDirectoryItems(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user