Skip to content

Commit

Permalink
Mark prefs as dirty when user dirs are modified
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Jun 5, 2024
1 parent e2cb3cd commit 4b14ca2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions addons/io_hubs_addon/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,20 @@ def execute(self, context):
return {'FINISHED'}


def set_prefs_dirty(self, context):
context.preferences.is_dirty = True


class HubsUserComponentsPath(bpy.types.PropertyGroup):
name: StringProperty(
name='User components path entry name',
description='An optional, user defined label to allow quick discernment between different user component definition directories.',
)
update=set_prefs_dirty)
path: StringProperty(
name='User components path path',
description='The path to a user defined component definitions directory. You can copy external components here and they will be loaded automatically.',
subtype='FILE_PATH'
subtype='FILE_PATH',
update=set_prefs_dirty
)


Expand Down

0 comments on commit 4b14ca2

Please sign in to comment.