Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6136 from ynput/bugfix/style-polish-fix
Browse files Browse the repository at this point in the history
Chore tools: Make sure style object is not garbage collected
  • Loading branch information
iLLiCiTiT authored Jan 16, 2024
2 parents e9387c1 + b0a2c96 commit 97030a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openpype/tools/utils/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def set_style_property(widget, property_name, property_value):
if cur_value == property_value:
return
widget.setProperty(property_name, property_value)
widget.style().polish(widget)
style = widget.style()
style.polish(widget)


def paint_image_with_color(image, color):
Expand Down

0 comments on commit 97030a9

Please sign in to comment.