Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Dec 8, 2024
1 parent b58f86d commit a8320d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 0 additions & 1 deletion JL.Core/Dicts/DictUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ internal static async Task<bool> DownloadDict(string dictPath, Uri dictDownloadU
catch (Exception ex)
{
Utils.Frontend.ShowOkDialog($"Unexpected error while downloading {dictName}.", "Info");

Utils.Logger.Error(ex, "Unexpected error while downloading {DictName}", dictName);
}

Expand Down
2 changes: 1 addition & 1 deletion JL.Windows/GUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private bool CopyText(string text)
{
if (configManager.MergeSequentialTextsWhenTheyMatch)
{
s_lastTextCopyTime = new(Stopwatch.GetTimestamp());
s_lastTextCopyTime = new DateTime(Stopwatch.GetTimestamp());
}

return false;
Expand Down
15 changes: 9 additions & 6 deletions JL.Windows/GUI/PreferencesWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -644,14 +644,17 @@ private void ProfileComboBox_SelectionChanged(object sender, SelectionChangedEve
ProfileDBUtils.UpdateCurrentProfile(connection);
Stats.ProfileLifetimeStats = StatsDBUtils.GetStatsFromDB(connection, ProfileUtils.CurrentProfileId)!;
StatsDBUtils.UpdateProfileLifetimeStats(connection);
}

ConfigManager configManager = ConfigManager.Instance;
Application.Current.Dispatcher.Invoke(() =>
ConfigManager configManager = ConfigManager.Instance;
Application.Current.Dispatcher.Invoke(() =>
{
using (SqliteConnection preferencesConnection = ConfigDBManager.CreateReadWriteDBConnection())
{
configManager.ApplyPreferences(connection);
configManager.LoadPreferenceWindow(this);
});
}
configManager.ApplyPreferences(preferencesConnection);
}
configManager.LoadPreferenceWindow(this);
});

RegexReplacerUtils.PopulateRegexReplacements();
}
Expand Down

0 comments on commit a8320d5

Please sign in to comment.