Skip to content

Commit

Permalink
update to latest core: UpdateBar -> ApplyStyleUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Apr 19, 2024
1 parent 81369d6 commit 82d70a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions egui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions egui/loopctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit 82d70a0

Please sign in to comment.