Skip to content

Commit

Permalink
remove RenderUpdateWindow call and fix spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Aug 19, 2024
1 parent 1e87ed8 commit dcd7a95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions egui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (gui *GUI) UpdateWindow() {
tb.Restyle()
}
gui.Body.Scene.NeedsRender()
// todo: could update other stuff but not really neccesary
// todo: could update other stuff but not really necessary
}

// GoUpdateWindow triggers an update on window body,
Expand All @@ -78,7 +78,7 @@ func (gui *GUI) GoUpdateWindow() {
tb.Restyle()
}
gui.Body.Scene.NeedsRender()
// todo: could update other stuff but not really neccesary
// todo: could update other stuff but not really necessary
}

// Stopped is called when a run method stops running,
Expand Down
5 changes: 0 additions & 5 deletions netview/netview.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
"cogentcore.org/core/math32/minmax"
"cogentcore.org/core/styles"
"cogentcore.org/core/styles/abilities"
"cogentcore.org/core/system"
"cogentcore.org/core/texteditor"
"cogentcore.org/core/tree"
"cogentcore.org/core/types"
Expand Down Expand Up @@ -228,10 +227,6 @@ func (nv *NetView) GoUpdateView() {
se.SetNeedsRender()
sw.NeedsRender()
sw.Scene.AsyncUnlock()
if core.TheApp.Platform() == system.Web {
fmt.Println("nv rendering", nv.CurCtrs)
sw.WidgetBase.Scene.RenderUpdateWindow()
}
}

// UpdateView updates the display based on last recorded state of network.
Expand Down

0 comments on commit dcd7a95

Please sign in to comment.