Skip to content

Commit

Permalink
Mark preferences as dirty after adding/removing user dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Jun 5, 2024
1 parent cf808a5 commit 929bd90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/io_hubs_addon/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ def execute(self, context):
paths = addon_prefs.user_components_paths
paths.add()

context.preferences.is_dirty = True

return {'FINISHED'}


Expand All @@ -168,6 +170,8 @@ def execute(self, context):
paths = addon_prefs.user_components_paths
paths.remove(self.index)

context.preferences.is_dirty = True

return {'FINISHED'}


Expand Down

0 comments on commit 929bd90

Please sign in to comment.