Remain classes and fix adding row to EditTagsDialog

This commit is contained in:
Michael Bucari-Tovo 2022-07-17 00:59:26 -06:00
parent 4cfe72a63b
commit 51fee4ae24
22 changed files with 140 additions and 129 deletions

View file

@ -19,8 +19,8 @@ namespace LibationWinForms.AvaloniaUI.Views.Dialogs
get => _filterString;
set
{
IsDefault = string.IsNullOrEmpty(value);
this.RaiseAndSetIfChanged(ref _filterString, value);
IsDefault = string.IsNullOrEmpty(_filterString);
this.RaisePropertyChanged(nameof(IsDefault));
}
}
@ -54,7 +54,9 @@ namespace LibationWinForms.AvaloniaUI.Views.Dialogs
{
if (Filters.Any(f => f.IsDefault))
return;
Filters.Insert(Filters.Count, new Filter());
var newBlank = new Filter();
newBlank.PropertyChanged += Filter_PropertyChanged;
Filters.Insert(Filters.Count, newBlank);
}
protected override void SaveAndClose()