Skip to content

Commit

Permalink
call Update OnSHow for image sizing on initial load as workaround for…
Browse files Browse the repository at this point in the history
… #1034
  • Loading branch information
kkoreilly committed Jul 24, 2024
1 parent 20aa3c3 commit 91451d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,8 @@ func main() {
return true
}

b.OnShow(func(e events.Event) {
b.Update() // TODO: needed for image sizing on initial load
})
b.RunMainWindow()
}

0 comments on commit 91451d1

Please sign in to comment.