From dcd7a95105043d5c678bbfa57bcc40054491f950 Mon Sep 17 00:00:00 2001 From: Kai O'Reilly Date: Mon, 19 Aug 2024 00:57:05 -0700 Subject: [PATCH] remove RenderUpdateWindow call and fix spelling mistakes --- egui/gui.go | 4 ++-- netview/netview.go | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/egui/gui.go b/egui/gui.go index 80fa5cbe..c8f73f24 100644 --- a/egui/gui.go +++ b/egui/gui.go @@ -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, @@ -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, diff --git a/netview/netview.go b/netview/netview.go index 52c715a6..812f791b 100644 --- a/netview/netview.go +++ b/netview/netview.go @@ -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" @@ -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.