diff options
| author | Jeff Carr <[email protected]> | 2025-02-23 05:23:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-23 13:13:30 -0600 |
| commit | 281899055de50b28824a75d96485abf3c02c4e82 (patch) | |
| tree | 7b7a085f2947fe9998f16080420b5becfa8d2c75 /table.go | |
| parent | 55d44416684928fb0938c262798013edf9f4d897 (diff) | |
check if the table is already here
Diffstat (limited to 'table.go')
| -rw-r--r-- | table.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -42,6 +42,17 @@ func (me *TreeInfo) doTable(a widget.Action) { // } // dumpTable(t) // me.ShowTable(t) + log.Info("TREE FOUND TABLE UUID", t.Uuid) + for i, ot := range me.currentTables { + log.Info("TREE already has UUID", i, ot.Uuid) + if t.Uuid == ot.Uuid { + log.Info("TREE found UUID! update table here", i, ot.Uuid) + log.Info("todo: compare table here...") + return + } + } + + me.currentTables = append(me.currentTables, t) me.makeTable(t) } } |
