From 90731a89480c637ec118d7045a04b357b43a283d Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Tue, 31 Aug 2021 09:32:50 -0400 Subject: [PATCH] 'Convert all M4b to Mp3': add confirmation dialog with better explanation --- LibationLauncher/LibationLauncher.csproj | 2 +- LibationWinForms/Form1.Designer.cs | 2 +- LibationWinForms/Form1.cs | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/LibationLauncher/LibationLauncher.csproj b/LibationLauncher/LibationLauncher.csproj index d71ad236..0c60bf2d 100644 --- a/LibationLauncher/LibationLauncher.csproj +++ b/LibationLauncher/LibationLauncher.csproj @@ -13,7 +13,7 @@ win-x64 - 5.5.9.1 + 5.5.10.1 diff --git a/LibationWinForms/Form1.Designer.cs b/LibationWinForms/Form1.Designer.cs index 18660d36..00917758 100644 --- a/LibationWinForms/Form1.Designer.cs +++ b/LibationWinForms/Form1.Designer.cs @@ -216,7 +216,7 @@ // this.convertAllM4bToMp3ToolStripMenuItem.Name = "convertAllM4bToMp3ToolStripMenuItem"; this.convertAllM4bToMp3ToolStripMenuItem.Size = new System.Drawing.Size(284, 22); - this.convertAllM4bToMp3ToolStripMenuItem.Text = "Convert all M4b to Mp3 [Long-running]"; + this.convertAllM4bToMp3ToolStripMenuItem.Text = "Convert all M4b to Mp3 [Long-running]..."; this.convertAllM4bToMp3ToolStripMenuItem.Visible = true; this.convertAllM4bToMp3ToolStripMenuItem.Click += new System.EventHandler(this.convertAllM4bToMp3ToolStripMenuItem_Click); // diff --git a/LibationWinForms/Form1.cs b/LibationWinForms/Form1.cs index 945204ec..3470741f 100644 --- a/LibationWinForms/Form1.cs +++ b/LibationWinForms/Form1.cs @@ -389,7 +389,18 @@ namespace LibationWinForms => await BookLiberation.ProcessorAutomationController.BackupAllPdfsAsync(); private async void convertAllM4bToMp3ToolStripMenuItem_Click(object sender, EventArgs e) - => await BookLiberation.ProcessorAutomationController.ConvertAllBooksAsync(); + { + var result = MessageBox.Show( + "This converts all m4b titles in your library to mp3 files. Original files are not deleted." + + "\r\nFor large libraries this will take a long time and will take up more disk space." + + "\r\n\r\nContinue?" + + "\r\n\r\n(To always download titles as mp3 instead of m4b, go to Settings: Download my books as .MP3 files)", + "Convert all M4b => Mp3?", + MessageBoxButtons.YesNo, + MessageBoxIcon.Warning); + if (result == DialogResult.Yes) + await BookLiberation.ProcessorAutomationController.ConvertAllBooksAsync(); + } #endregion