Skip to content

Commit

Permalink
Merge pull request #403 from Samweli/fix_activity_update
Browse files Browse the repository at this point in the history
Fix bug in updating plugin default activities
  • Loading branch information
Samweli authored May 10, 2024
2 parents 15e8867 + 69f377d commit b727b6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cplus_plugin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,10 @@ def initialize_model_settings():
continue

for activity in settings_manager.get_all_activities():
if activity.user_defined:
continue
if str(activity.uuid) not in new_activities_uuids:
settings_manager.activities(str(activity.uuid))
settings_manager.remove_activity(str(activity.uuid))

settings_manager.set_value(activity_ncs_setting, True)

Expand Down

0 comments on commit b727b6b

Please sign in to comment.