Skip to content

Commit

Permalink
Fixing settings save on change
Browse files Browse the repository at this point in the history
  • Loading branch information
t3knomanzer committed Oct 24, 2020
1 parent 4fe1940 commit 1700acb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Desktop/Application/MaxMix/ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Reflection;
using System.Runtime.CompilerServices;

namespace MaxMix.ViewModels
{
Expand Down Expand Up @@ -242,6 +243,12 @@ private void SetRunAtStartup(bool enabled)
#endregion

#region EventHandlers
protected override void SetProperty<T>(ref T field, T value, [CallerMemberName] string name = null)
{
base.SetProperty(ref field, value, name);
_settings.Save();

}
#endregion
}
}

0 comments on commit 1700acb

Please sign in to comment.