Skip to content

Commit

Permalink
Fix custom labels not saving
Browse files Browse the repository at this point in the history
  • Loading branch information
dsafa committed Nov 22, 2018
1 parent 3962058 commit d7c559c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/AudioBand/ViewModels/CustomLabelsVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ private async Task RemoveLabelCommandOnExecute(CustomLabelVM labelVm)

protected override void OnBeginEdit()
{
base.OnBeginEdit();
_added.Clear();
_removed.Clear();

Expand Down Expand Up @@ -93,6 +92,17 @@ protected override void OnCancelEdit()
customLabelVm.CancelEdit();
}
}

protected override void OnEndEdit()
{
_added.Clear();
_removed.Clear();

foreach (var customLabelVm in CustomLabels)
{
customLabelVm.EndEdit();
}
}
}

internal interface ICustomLabelHost
Expand Down

0 comments on commit d7c559c

Please sign in to comment.