diff --git a/LibationLauncher/LibationLauncher.csproj b/LibationLauncher/LibationLauncher.csproj
index b32e3d1c..4971442b 100644
--- a/LibationLauncher/LibationLauncher.csproj
+++ b/LibationLauncher/LibationLauncher.csproj
@@ -13,7 +13,7 @@
win-x64
- 5.2.0.13
+ 5.2.0.14
diff --git a/LibationWinForms/Dialogs/SettingsDialog.Designer.cs b/LibationWinForms/Dialogs/SettingsDialog.Designer.cs
index 628aa104..68314b07 100644
--- a/LibationWinForms/Dialogs/SettingsDialog.Designer.cs
+++ b/LibationWinForms/Dialogs/SettingsDialog.Designer.cs
@@ -39,6 +39,7 @@
this.allowLibationFixupCbox = new System.Windows.Forms.CheckBox();
this.booksSelectControl = new LibationWinForms.Dialogs.DirectoryOrCustomSelectControl();
this.booksGb = new System.Windows.Forms.GroupBox();
+ this.logsBtn = new System.Windows.Forms.Button();
this.advancedSettingsGb.SuspendLayout();
this.booksGb.SuspendLayout();
this.SuspendLayout();
@@ -92,6 +93,7 @@
//
this.advancedSettingsGb.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
+ this.advancedSettingsGb.Controls.Add(this.logsBtn);
this.advancedSettingsGb.Controls.Add(this.convertLossyRb);
this.advancedSettingsGb.Controls.Add(this.convertLosslessRb);
this.advancedSettingsGb.Controls.Add(this.inProgressSelectControl);
@@ -172,6 +174,16 @@
this.booksGb.TabStop = false;
this.booksGb.Text = "Books location";
//
+ // logsBtn
+ //
+ this.logsBtn.Location = new System.Drawing.Point(826, 18);
+ this.logsBtn.Name = "logsBtn";
+ this.logsBtn.Size = new System.Drawing.Size(75, 64);
+ this.logsBtn.TabIndex = 3;
+ this.logsBtn.Text = "Open log\r\nfiles folder";
+ this.logsBtn.UseVisualStyleBackColor = true;
+ this.logsBtn.Click += new System.EventHandler(this.logsBtn_Click);
+ //
// SettingsDialog
//
this.AcceptButton = this.saveBtn;
@@ -209,5 +221,6 @@
private System.Windows.Forms.RadioButton convertLossyRb;
private System.Windows.Forms.RadioButton convertLosslessRb;
private System.Windows.Forms.GroupBox booksGb;
+ private System.Windows.Forms.Button logsBtn;
}
}
\ No newline at end of file
diff --git a/LibationWinForms/Dialogs/SettingsDialog.cs b/LibationWinForms/Dialogs/SettingsDialog.cs
index 57faf818..432a2b63 100644
--- a/LibationWinForms/Dialogs/SettingsDialog.cs
+++ b/LibationWinForms/Dialogs/SettingsDialog.cs
@@ -1,6 +1,7 @@
using System;
using System.IO;
using System.Windows.Forms;
+using Dinah.Core;
using FileManager;
namespace LibationWinForms.Dialogs
@@ -49,13 +50,26 @@ namespace LibationWinForms.Dialogs
inProgressSelectControl.SelectDirectory(config.InProgress);
}
+ private void allowLibationFixupCbox_CheckedChanged(object sender, EventArgs e)
+ {
+ convertLosslessRb.Enabled = allowLibationFixupCbox.Checked;
+ convertLossyRb.Enabled = allowLibationFixupCbox.Checked;
+
+ if (!allowLibationFixupCbox.Checked)
+ {
+ convertLosslessRb.Checked = true;
+ }
+ }
+
+ private void logsBtn_Click(object sender, EventArgs e) => Go.To.Folder(Configuration.Instance.LibationFiles);
+
private void saveBtn_Click(object sender, EventArgs e)
{
config.AllowLibationFixup = allowLibationFixupCbox.Checked;
config.DecryptToLossy = convertLossyRb.Checked;
config.InProgress = inProgressSelectControl.SelectedDirectory;
-
+
var newBooks = booksSelectControl.SelectedDirectory;
if (string.IsNullOrWhiteSpace(newBooks))
@@ -75,7 +89,7 @@ namespace LibationWinForms.Dialogs
if (booksSelectControl.SelectedDirectoryIsKnown)
Directory.CreateDirectory(newBooks);
}
-
+
config.Books = newBooks;
this.DialogResult = DialogResult.OK;
@@ -87,16 +101,5 @@ namespace LibationWinForms.Dialogs
this.DialogResult = DialogResult.Cancel;
this.Close();
}
-
- private void allowLibationFixupCbox_CheckedChanged(object sender, EventArgs e)
- {
- convertLosslessRb.Enabled = allowLibationFixupCbox.Checked;
- convertLossyRb.Enabled = allowLibationFixupCbox.Checked;
-
- if (!allowLibationFixupCbox.Checked)
- {
- convertLosslessRb.Checked = true;
- }
- }
- }
+ }
}