From 82d70a088759244a816438c630f716bf8b3e107e Mon Sep 17 00:00:00 2001 From: "Randall C. O'Reilly" Date: Fri, 19 Apr 2024 14:35:02 -0700 Subject: [PATCH] update to latest core: UpdateBar -> ApplyStyleUpdate --- egui/gui.go | 4 ++-- egui/loopctrl.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/egui/gui.go b/egui/gui.go index e766f544..41cd8b31 100644 --- a/egui/gui.go +++ b/egui/gui.go @@ -62,7 +62,7 @@ type GUI struct { func (gui *GUI) UpdateWindow() { tb := gui.Body.GetTopAppBar() if tb != nil { - tb.UpdateBar() + tb.ApplyStyleUpdate() } gui.Body.Scene.NeedsRender() // todo: could update other stuff but not really neccesary @@ -76,7 +76,7 @@ func (gui *GUI) GoUpdateWindow() { tb := gui.Body.GetTopAppBar() if tb != nil { - tb.UpdateBar() + tb.ApplyStyleUpdate() } gui.Body.Scene.NeedsRender() // todo: could update other stuff but not really neccesary diff --git a/egui/loopctrl.go b/egui/loopctrl.go index d95112e4..66a4f274 100644 --- a/egui/loopctrl.go +++ b/egui/loopctrl.go @@ -36,7 +36,7 @@ func (gui *GUI) AddLooperCtrl(tb *core.Toolbar, loops *looper.Manager, modes []e OnClick(func(e events.Event) { if !gui.IsRunning { gui.IsRunning = true - tb.UpdateBar() + tb.ApplyStyleUpdate() go func() { loops.Run(mode) gui.Stopped() @@ -61,7 +61,7 @@ func (gui *GUI) AddLooperCtrl(tb *core.Toolbar, loops *looper.Manager, modes []e OnClick(func(e events.Event) { if !gui.IsRunning { gui.IsRunning = true - tb.UpdateBar() + tb.ApplyStyleUpdate() go func() { stack := loops.Stacks[mode] loops.Step(mode, stepN[stack.StepLevel.String()], stack.StepLevel)