Skip to content

Commit

Permalink
Merge branch 'develop' into container-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth authored Jan 31, 2024
2 parents 3874f22 + 85644c2 commit 5632834
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion container.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ func (c *Container) Refresh() {
// It is much more efficient to call RemoveAll() instead.
func (c *Container) Remove(rem CanvasObject) {
c.lock.Lock()

if len(c.Objects) == 0 {
c.lock.Unlock()
return
Expand Down
4 changes: 4 additions & 0 deletions widget/icon.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ func (i *iconRenderer) Refresh() {
i.image.propertyLock.RLock()
i.raster.Resource = i.image.Resource
i.image.cachedRes = i.image.Resource

if i.image.Resource == nil {
i.raster.Image = nil // reset the internal caching too...
}
i.image.propertyLock.RUnlock()

i.raster.Refresh()
Expand Down

0 comments on commit 5632834

Please sign in to comment.