Skip to content

Commit

Permalink
splash: adjust update time
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Dec 6, 2024
1 parent f3261c2 commit a269b05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion splash/splash.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"bytes"
_ "embed"
"errors"
"time"
"image"
_ "image/png"
"io"
Expand Down Expand Up @@ -205,7 +206,7 @@ func (ui *Splash) Run() error {
}
case app.FrameEvent:
gtx := app.NewContext(&ops, e)
gtx.Execute(op.InvalidateCmd{})
gtx.Execute(op.InvalidateCmd{At: gtx.Now.Add(time.Millisecond * 64)})
paint.Fill(gtx.Ops, ui.Theme.Palette.Bg)

if !post {
Expand Down

0 comments on commit a269b05

Please sign in to comment.