diff --git a/init.go b/init.go index 34cb40f..df62633 100644 --- a/init.go +++ b/init.go @@ -49,12 +49,6 @@ func setLabel(n *tree.Node, s string) { }) } -func showTable(n *tree.Node) { - ui.QueueMain(func() { - log.Info("show table here") - }) -} - func realSetText(n *tree.Node, s string) { ui.QueueMain(func() { SetText(n, s) diff --git a/table.go b/table.go new file mode 100644 index 0000000..9e971de --- /dev/null +++ b/table.go @@ -0,0 +1,13 @@ +// Copyright 2017-2025 WIT.COM Inc. All rights reserved. +// Use of this source code is governed by the GPL 3.0 + +package main + +import ( + "go.wit.com/lib/protobuf/guipb" + "go.wit.com/log" +) + +func showTable(t *guipb.Table) { + log.Info("should show table here") +} diff --git a/treeInit.go b/treeInit.go index 27153e2..c51a9fe 100644 --- a/treeInit.go +++ b/treeInit.go @@ -63,7 +63,6 @@ func initTree() *tree.TreeInfo { t.SetChecked = setChecked t.ToolkitClose = toolkitClose t.ShowTable = showTable - t.Show = showTable return t }