Fire the section changed event
This commit is contained in:
parent
efb6732cd7
commit
0193c8de0a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user