Fixed selected section is off by one

Closes #26
This commit is contained in:
tsommer committed 2022-07-13 19:31:59 +02:00
1 parent 620bc992a8
commit 6b49b3f3e7
1 file changed
+1 -1
@@ -192,7 +192,7 @@ public partial class SectionTree : UserControl
return;
// Get the currently selected section:
var selectedNode = this.treeView.SelectedNode;
var selectedNode = e.Node;
// If the selected node is not null, enable the remove & edit button:
this.buttonRename.Enabled = this.buttonRemove.Enabled = selectedNode is not null;