diff --git a/I18N Commander/UI WinForms/Components/SectionTree.cs b/I18N Commander/UI WinForms/Components/SectionTree.cs index 02ede17..a436b59 100644 --- a/I18N Commander/UI WinForms/Components/SectionTree.cs +++ b/I18N Commander/UI WinForms/Components/SectionTree.cs @@ -196,6 +196,14 @@ public partial class SectionTree : UserControl // If the selected node is not null, enable the remove & edit button: this.buttonRename.Enabled = this.buttonRemove.Enabled = selectedNode is not null; + + // When a section is selected, fire the event: + if (selectedNode is not null) + { + // Get the section from the database: + var section = SectionProcessor.GetSection(this.db, selectedNode.Name); + AppEvents.SectionChanged(section); + } } private async void buttonRename_Click(object sender, EventArgs e)