From 8240be42e0a7034e0e0ea6f304109496ba51dbdb Mon Sep 17 00:00:00 2001 From: MaikyM <51415805+MaikyM@users.noreply.github.com> Date: Sun, 27 Oct 2019 20:27:17 -0600 Subject: [PATCH] Added option to enable/disable AES reload. --- FModel/App.config | 5 ++++- FModel/FModel.csproj | 2 ++ FModel/FModel_Main.xaml | 4 +++- FModel/FModel_Main.xaml.cs | 10 ++++++++-- FModel/Forms/FModel_Settings.xaml | 19 ++++++++++--------- FModel/Forms/FModel_Settings.xaml.cs | 5 ++++- FModel/Properties/Settings.Designer.cs | 22 +++++++++++++++++----- FModel/Properties/Settings.settings | 3 +++ 8 files changed, 51 insertions(+), 19 deletions(-) diff --git a/FModel/App.config b/FModel/App.config index 89e07837..96bb0aa6 100644 --- a/FModel/App.config +++ b/FModel/App.config @@ -1,4 +1,4 @@ - + @@ -79,6 +79,9 @@ True + + True + diff --git a/FModel/FModel.csproj b/FModel/FModel.csproj index 5c0df7d5..01f61b50 100644 --- a/FModel/FModel.csproj +++ b/FModel/FModel.csproj @@ -43,6 +43,7 @@ prompt 4 true + 7.1 x64 @@ -54,6 +55,7 @@ 4 true false + 7.1 Logo.ico diff --git a/FModel/FModel_Main.xaml b/FModel/FModel_Main.xaml index c326a826..3bec7842 100644 --- a/FModel/FModel_Main.xaml +++ b/FModel/FModel_Main.xaml @@ -1,4 +1,4 @@ - + + diff --git a/FModel/FModel_Main.xaml.cs b/FModel/FModel_Main.xaml.cs index ee861298..7e2806e8 100644 --- a/FModel/FModel_Main.xaml.cs +++ b/FModel/FModel_Main.xaml.cs @@ -1,4 +1,4 @@ -using AutoUpdaterDotNET; +using AutoUpdaterDotNET; using FModel.Forms; using FModel.Forms.HexViewer; using FModel.Methods; @@ -51,7 +51,8 @@ namespace FModel FoldersUtility.LoadFolders(); FoldersUtility.CheckWatermark(); RegisterFromPath.FilterPAKs(); - DynamicKeysChecker.SetDynamicKeys(); + if (FProp.Default.ReloadAES) + DynamicKeysChecker.SetDynamicKeys(); RegisterDownloadedBackups.LoadBackupFiles(); }).ContinueWith(TheTask => { @@ -356,5 +357,10 @@ namespace FModel } } #endregion + + private void MenuItem_Click(object sender, RoutedEventArgs e) + { + DynamicKeysChecker.SetDynamicKeys(); + } } } diff --git a/FModel/Forms/FModel_Settings.xaml b/FModel/Forms/FModel_Settings.xaml index d6dfcae9..56583351 100644 --- a/FModel/Forms/FModel_Settings.xaml +++ b/FModel/Forms/FModel_Settings.xaml @@ -1,4 +1,4 @@ - - +