Skip to content

Commit

Permalink
Persist HubsUrl updates
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Dec 11, 2023
1 parent 52d7678 commit 782f0b9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions addons/io_hubs_addon/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,16 +645,17 @@ def get_url(self):
return self.url_


class HubsUrl(bpy.types.PropertyGroup):
name: bpy.props.StringProperty()
url: bpy.props.StringProperty(set=set_url, get=get_url)
url_: bpy.props.StringProperty(options={"HIDDEN"})


def save_prefs_on_prop_update(self, context):
save_prefs(context)


class HubsUrl(bpy.types.PropertyGroup):
name: bpy.props.StringProperty(update=save_prefs_on_prop_update)
url: bpy.props.StringProperty(
set=set_url, get=get_url, update=save_prefs_on_prop_update)
url_: bpy.props.StringProperty(options={"HIDDEN"})


class HubsSceneDebuggerPrefs(bpy.types.PropertyGroup):
hubs_instances: bpy.props.CollectionProperty(
type=HubsUrl)
Expand Down

0 comments on commit 782f0b9

Please sign in to comment.