Addon Manager: Manually convert property to binary data

This commit is contained in:
Chris Hennes
2022-09-24 11:45:03 -05:00
parent 414ff3fb35
commit 2849d7bec3

View File

@@ -95,6 +95,8 @@ class AddonManagerOptions:
pref_path = widget.property("prefPath")
pref_entry = widget.property("prefEntry")
if pref_path and pref_entry:
pref_path = pref_path.data()
pref_entry = pref_entry.data()
pref_access_string = (
f"User parameter:BaseApp/Preferences/{str(pref_path,'utf-8')}"
)
@@ -137,6 +139,8 @@ class AddonManagerOptions:
pref_path = widget.property("prefPath")
pref_entry = widget.property("prefEntry")
if pref_path and pref_entry:
pref_path = pref_path.data()
pref_entry = pref_entry.data()
pref_access_string = (
f"User parameter:BaseApp/Preferences/{str(pref_path,'utf-8')}"
)