Skip to content

Commit

Permalink
Merge pull request #229 from t3knomanzer/fix_settings_save
Browse files Browse the repository at this point in the history
Fixing settings save on change
  • Loading branch information
t3knomanzer authored Oct 24, 2020
2 parents 4fe1940 + 1700acb commit 5a0ce16
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 5a0ce16

Please sign in to comment.