From 25acf2ffca5b7df99ca8e52bc59d434134aff323 Mon Sep 17 00:00:00 2001 From: Jan Karger Date: Mon, 12 Dec 2016 16:03:24 +0100 Subject: [PATCH] Fix not saving changes --- MONI/Data/WorkYear.cs | 3 ++- MONI/MONI.csproj | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/MONI/Data/WorkYear.cs b/MONI/Data/WorkYear.cs index 48ae686..f0c2583 100644 --- a/MONI/Data/WorkYear.cs +++ b/MONI/Data/WorkYear.cs @@ -49,7 +49,8 @@ public WorkYear(int year, WorkDayParserSettings parserSettings, int hitListLookB private void workWeek_PropertyChanged(object sender, PropertyChangedEventArgs e) { - //this.OnPropertyChanged("HoursDuration"); + // this property doesn't exist here, but we want to trigger saving the data at MainViewModel + this.OnPropertyChanged("HoursDuration"); this.UpdateProjectHitlistAsync(); this.UpdatePositionHitlistAsync(); } diff --git a/MONI/MONI.csproj b/MONI/MONI.csproj index 46b3e6f..efde94a 100644 --- a/MONI/MONI.csproj +++ b/MONI/MONI.csproj @@ -231,10 +231,6 @@ - - - - @@ -242,6 +238,10 @@ + + + +