diff --git a/blender_cloud/settings_sync.py b/blender_cloud/settings_sync.py index 2a0aec0..956b9d9 100644 --- a/blender_cloud/settings_sync.py +++ b/blender_cloud/settings_sync.py @@ -266,7 +266,10 @@ class PILLAR_OT_sync(async_loop.AsyncModalOperatorMixin, bpy.types.Operator): print('RESTORING: %s.%s=%s' % (set_on, key, value)) setattr(set_on, key, value) - # The above call stops any running modal operator, so we have to be + # Save the now-adjusted user settings. + bpy.ops.wm.save_userpref() + + # The read_homefile() call stops any running modal operator, so we have to be # very careful with our asynchronous loop. Since it didn't stop by # its own accord (because the current async task is still running), # we need to shut it down forcefully.