From 4cdf2cee9c25c8bdc595346cebf8520b29ca6356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 21 Jun 2016 16:30:42 +0200 Subject: [PATCH] Also save userprefs after restoring local-only settings. --- blender_cloud/settings_sync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.