From 724277e0edf446796bb834ce716ef316fbf8c506 Mon Sep 17 00:00:00 2001 From: rampaa Date: Sun, 10 Dec 2023 19:02:14 +0300 Subject: [PATCH] Minor --- JL.Windows/GUI/EditDictionaryWindow.xaml.cs | 12 ++++++------ JL.Windows/GUI/EditFrequencyWindow.xaml.cs | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/JL.Windows/GUI/EditDictionaryWindow.xaml.cs b/JL.Windows/GUI/EditDictionaryWindow.xaml.cs index a6f19681..e28204b4 100644 --- a/JL.Windows/GUI/EditDictionaryWindow.xaml.cs +++ b/JL.Windows/GUI/EditDictionaryWindow.xaml.cs @@ -100,12 +100,12 @@ private void SaveButton_Click(object sender, RoutedEventArgs e) if (_dict.Options?.UseDB?.Value != options.UseDB?.Value) { _dict.Ready = false; - if (dbExists && !(options.UseDB?.Value ?? false)) - { - SqliteConnection.ClearAllPools(); - File.Delete(dbPath); - dbExists = false; - } + //if (dbExists && !(options.UseDB?.Value ?? false)) + //{ + // SqliteConnection.ClearAllPools(); + // File.Delete(dbPath); + // dbExists = false; + //} } if (_dict.Name != name) diff --git a/JL.Windows/GUI/EditFrequencyWindow.xaml.cs b/JL.Windows/GUI/EditFrequencyWindow.xaml.cs index ab21778a..d90f3f97 100644 --- a/JL.Windows/GUI/EditFrequencyWindow.xaml.cs +++ b/JL.Windows/GUI/EditFrequencyWindow.xaml.cs @@ -86,12 +86,12 @@ private void SaveButton_Click(object sender, RoutedEventArgs e) if (_freq.Options?.UseDB?.Value != options.UseDB?.Value) { _freq.Ready = false; - if (dbExists && !(options.UseDB?.Value ?? false)) - { - SqliteConnection.ClearAllPools(); - File.Delete(dbPath); - dbExists = false; - } + //if (dbExists && !(options.UseDB?.Value ?? false)) + //{ + // SqliteConnection.ClearAllPools(); + // File.Delete(dbPath); + // dbExists = false; + //} } if (_freq.Name != name)