Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Dec 10, 2023
1 parent b4ce705 commit 724277e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions JL.Windows/GUI/EditDictionaryWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 6 additions & 6 deletions JL.Windows/GUI/EditFrequencyWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 724277e

Please sign in to comment.