Skip to content

Commit

Permalink
update to more core cleanup changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 11, 2024
1 parent 1bf8e5c commit 14d5e20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions canvas/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (gv *Canvas) CopySelected() { //types:add
return
}
tv := gv.Tree()
tv.SetSelectedViews(tvl)
tv.SetSelectedNodes(tvl)

Check failure on line 82 in canvas/tree.go

View workflow job for this annotation

GitHub Actions / build

cannot use tvl (variable of type []core.Treer) as core.Treer value in argument to tv.SetSelectedNodes: []core.Treer does not implement core.Treer (missing method AddChildNode)
tvl[0].Copy() // operates on first element in selection
gv.SetStatus("Copied selected items")
}
Expand All @@ -97,7 +97,7 @@ func (gv *Canvas) CutSelected() { //types:add
sv.EditState().ResetSelected()
tv := gv.Tree()
// tv.SetFullReRender()
tv.SetSelectedViews(tvl)
tv.SetSelectedNodes(tvl)

Check failure on line 100 in canvas/tree.go

View workflow job for this annotation

GitHub Actions / build

cannot use tvl (variable of type []core.Treer) as core.Treer value in argument to tv.SetSelectedNodes: []core.Treer does not implement core.Treer (missing method AddChildNode)
tvl[0].Cut() // operates on first element in selection
gv.SetStatus("Cut selected items")
tv.Resync() // todo: should not be needed

Check failure on line 103 in canvas/tree.go

View workflow job for this annotation

GitHub Actions / build

tv.Resync undefined (type *Tree has no field or method Resync)
Expand Down
2 changes: 1 addition & 1 deletion code/filetree.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (fn *FileNode) RenameFiles() {
}
ge.SaveAllCheck(true, func() {
var nodes []*FileNode
sels := fn.SelectedViews()
sels := fn.GetSelectedNodes()

Check failure on line 264 in code/filetree.go

View workflow job for this annotation

GitHub Actions / build

fn.GetSelectedNodes undefined (type *FileNode has no field or method GetSelectedNodes)
for i := len(sels) - 1; i >= 0; i-- {
sn := sels[i].(*FileNode)
nodes = append(nodes, sn)
Expand Down
2 changes: 1 addition & 1 deletion numbers/databrowser/filetree.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (fn *FileNode) OnDoubleClick(e events.Event) {
if !ok {
return
}
sels := fn.SelectedViews()
sels := fn.GetSelectedNodes()
if len(sels) > 0 {
sn := filetree.AsNode(sels[len(sels)-1])
if sn != nil {
Expand Down

0 comments on commit 14d5e20

Please sign in to comment.