Merge pull request #6136 from ynput/bugfix/style-polish-fix

Chore tools: Make sure style object is not garbage collected
This commit is contained in:
Jakub Trllo 2024-01-16 11:02:37 +01:00 committed by GitHub
commit 97030a9fe8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):