summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-22 19:27:49 -0600
committerJeff Carr <[email protected]>2024-02-22 19:27:49 -0600
commit42048ba99741827972a60a88b8ad03c6a0e4e801 (patch)
treeb9df811e910233e45c1e5af7c8b7303d46002b52 /node.go
parent2de5864fff19e2f794e85385d075aa8e4049d709 (diff)
seperate mirror codev0.21.0v0.20.9
Diffstat (limited to 'node.go')
-rw-r--r--node.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/node.go b/node.go
index 7c314e9..3fdea60 100644
--- a/node.go
+++ b/node.go
@@ -71,6 +71,13 @@ func (parent *Node) Append(n *Node) {
parent.children = append(parent.children, n)
n.parent = parent
+ if n.IsMirror() {
+ m := n.isMirror
+ text := m.label
+ n.label = text
+ n.progname = text
+ }
+
// if the parent is a grid, add it to the next cell
if parent.WidgetType == widget.Grid {
parent.gridIncrement()