mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-13 17:22:48 -05:00
Fix hang when moving window during refresh
This commit is contained in:
@@ -49,14 +49,14 @@ public partial class MainWindow
|
||||
{
|
||||
// Set the last window location
|
||||
Settings.Default.WindowLocation = new Point(Left, Top);
|
||||
Settings.Default.Save();
|
||||
|
||||
// Set the last window size
|
||||
Settings.Default.WindowSize = new Size(Width, Height);
|
||||
Settings.Default.Save();
|
||||
|
||||
// Save the dock on the navigation tray
|
||||
Settings.Default.ToolbarLocation = NameBasedGrid.NameBasedGrid.GetRow(NavigationToolbarTray) == "TopToolbarRow" ? Dock.Top : Dock.Bottom;
|
||||
|
||||
// Save settings
|
||||
Settings.Default.Save();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,9 @@ public static class SettingsStore
|
||||
// Try to get the setting from the database that matches the name and version
|
||||
var setting = entities.Settings.FirstOrDefault(s => s.Name == name);
|
||||
|
||||
if (setting?.Value == value)
|
||||
return;
|
||||
|
||||
entities.SaveChanges(() =>
|
||||
{
|
||||
// If there was no setting we need to create it
|
||||
|
||||
Reference in New Issue
Block a user