diff --git a/UI/ViewModels/MainWindowViewModel.cs b/UI/ViewModels/MainWindowViewModel.cs index fdbf94b..d038aaa 100644 --- a/UI/ViewModels/MainWindowViewModel.cs +++ b/UI/ViewModels/MainWindowViewModel.cs @@ -159,6 +159,7 @@ public partial class MainWindowViewModel : ViewModelBase { this.SelectedTag.CommitEdit(); await this.Database.WriteTagToDatabase(this.SelectedTag.Tag); + this.SelectedTag.RefreshParentsString(); this.StatusBlockText = string.Format(Resources.StatusBlockTagSaveSuccessful, this.SelectedTag.Name); this.UnsavedChanges = false; } diff --git a/UI/ViewModels/TagItemViewModel.cs b/UI/ViewModels/TagItemViewModel.cs index fedac83..9c4ea7a 100644 --- a/UI/ViewModels/TagItemViewModel.cs +++ b/UI/ViewModels/TagItemViewModel.cs @@ -95,7 +95,7 @@ public partial class TagItemViewModel(Tag tag, Func? getNameById = this.OnPropertyChanged(nameof(this.TagBindings)); this.OnPropertyChanged(nameof(this.Notes)); this.OnPropertyChanged(nameof(this.IsTopLevel)); - this.RefreshParentsString(); + } public void RefreshParentsString() diff --git a/UI/Views/DeleteTagDialog.axaml b/UI/Views/DeleteTagDialog.axaml index e4e4ab3..4d43537 100644 --- a/UI/Views/DeleteTagDialog.axaml +++ b/UI/Views/DeleteTagDialog.axaml @@ -4,7 +4,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:assets="clr-namespace:TagHierarchyManager.UI.Assets" mc:Ignorable="d" d:DesignWidth="450" d:DesignHeight="100" - Width="500" Height="120" CanResize="False" + Width="500" Height="120" CanResize="False" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" x:Class="TagHierarchyManager.UI.Views.DeleteTagDialog" Title="DeleteTagDialog"> diff --git a/UI/Views/ErrorDialog.axaml b/UI/Views/ErrorDialog.axaml index 67320cc..19229fa 100644 --- a/UI/Views/ErrorDialog.axaml +++ b/UI/Views/ErrorDialog.axaml @@ -5,7 +5,7 @@ xmlns:assets="clr-namespace:TagHierarchyManager.UI.Assets" xmlns:vm="clr-namespace:TagHierarchyManager.UI.ViewModels" mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="125" - MinWidth="500" MinHeight="125" CanResize="False" SizeToContent="WidthAndHeight" + MinWidth="500" MinHeight="125" CanResize="False" ShowInTaskbar="False" SizeToContent="WidthAndHeight" x:Class="TagHierarchyManager.UI.Views.ErrorDialog" x:DataType="vm:ErrorDialogViewModel" Title="{x:Static assets:Resources.ErrorDialogTitleBarTitle}"> diff --git a/UI/Views/ImportDialog.axaml b/UI/Views/ImportDialog.axaml index e4ddb6e..4fdb917 100644 --- a/UI/Views/ImportDialog.axaml +++ b/UI/Views/ImportDialog.axaml @@ -5,7 +5,7 @@ xmlns:assets="clr-namespace:TagHierarchyManager.UI.Assets" xmlns:vm="clr-namespace:TagHierarchyManager.UI.ViewModels" mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="200" - Width="600" Height="200" + Width="600" Height="200" CanResize="False" ShowInTaskbar="False" x:Class="TagHierarchyManager.UI.Views.ImportDialog" x:DataType="vm:ImportDialogViewModel" Title="{x:Static assets:Resources.ImportDialogTitle}">