Skip to content

Commit

Permalink
update to more core cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 10, 2024
1 parent 3041c9a commit 1bf8e5c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions canvas/canvas.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (cv *Canvas) OpenDrawing(fnm core.Filename) error { //types:add
cv.SetTitle()
tv := cv.Tree()
tv.CloseAll()
tv.ReSync()
tv.Resync()

Check failure on line 213 in canvas/canvas.go

View workflow job for this annotation

GitHub Actions / build

tv.Resync undefined (type *Tree has no field or method Resync)
cv.SetStatus("Opened: " + string(cv.Filename))
tv.CloseAll()
sv.backgroundGridEff = 0
Expand Down Expand Up @@ -621,7 +621,7 @@ func (vv *Canvas) UpdateDisp() {

func (vv *Canvas) UpdateTree() {
tv := vv.Tree()
tv.ReSync()
tv.Resync()

Check failure on line 624 in canvas/canvas.go

View workflow job for this annotation

GitHub Actions / build

tv.Resync undefined (type *Tree has no field or method Resync)
}

func (vv *Canvas) SetDefaultStyle() {
Expand Down
12 changes: 6 additions & 6 deletions canvas/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (gv *Canvas) SelectNodeInTree(kn tree.Node, mode events.SelectModes) {
tvn := tv.FindSyncNode(kn)
if tvn != nil {
tvn.OpenParents()
tvn.SelectAction(mode)
tvn.SelectEvent(mode)

Check failure on line 32 in canvas/tree.go

View workflow job for this annotation

GitHub Actions / build

tvn.SelectEvent undefined (type *core.Tree has no field or method SelectEvent)
}
}

Expand Down Expand Up @@ -64,10 +64,10 @@ func (gv *Canvas) DuplicateSelected() { //types:add
tv := gv.Tree()
// tv.SetFullReRender()
for _, tvi := range tvl {
tvi.AsCoreTree().DuplicateSync()
tvi.Duplicate()
}
gv.SetStatus("Duplicated selected items")
tv.ReSync() // todo: should not be needed
tv.Resync() // todo: should not be needed

Check failure on line 70 in canvas/tree.go

View workflow job for this annotation

GitHub Actions / build

tv.Resync undefined (type *Tree has no field or method Resync)
gv.ChangeMade()
}

Expand Down Expand Up @@ -100,7 +100,7 @@ func (gv *Canvas) CutSelected() { //types:add
tv.SetSelectedViews(tvl)
tvl[0].Cut() // operates on first element in selection
gv.SetStatus("Cut selected items")
tv.ReSync() // todo: should not be needed
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)
sv.UpdateSelSprites()
gv.ChangeMade()
}
Expand All @@ -126,7 +126,7 @@ func (gv *Canvas) PasteClip() { //types:add
// }
// par.PasteChildren(md, dnd.DropCopy)
gv.SetStatus("Pasted items from clipboard")
tv.ReSync() // todo: should not be needed
tv.Resync() // todo: should not be needed

Check failure on line 129 in canvas/tree.go

View workflow job for this annotation

GitHub Actions / build

tv.Resync undefined (type *Tree has no field or method Resync)
gv.ChangeMade()
}

Expand All @@ -147,7 +147,7 @@ func (gv *Canvas) DeleteSelected() {
// tvi.SrcDelete()
// }
gv.SetStatus("Deleted selected items")
tv.ReSync() // todo: should not be needed
tv.Resync() // todo: should not be needed

Check failure on line 150 in canvas/tree.go

View workflow job for this annotation

GitHub Actions / build

tv.Resync undefined (type *Tree has no field or method Resync)
sv.UpdateSelSprites()
gv.ChangeMade()
}
Expand Down
2 changes: 1 addition & 1 deletion code/symbolspanel.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (sv *SymbolsPanel) UpdateSymbols() {
} else {
sv.OpenFile()
}
tv.ReSync()
tv.Resync()

Check failure on line 105 in code/symbolspanel.go

View workflow job for this annotation

GitHub Actions / build

tv.Resync undefined (type *SymTree has no field or method Resync)
tv.OpenAll()
}

Expand Down
2 changes: 1 addition & 1 deletion code/texteditor.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (ed *TextEditor) ContextMenu(m *core.Scene) {

fn := ed.Code.FileNodeForFile(string(ed.Buffer.Filename), false)
if fn != nil {
fn.SelectAction(events.SelectOne)
fn.SelectEvent(events.SelectOne)
fn.VCSContextMenu(m)
}

Expand Down

0 comments on commit 1bf8e5c

Please sign in to comment.