diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-28 06:29:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-28 06:29:10 +0400 |
commit | 0237e7eef2322a2b34d7a66130023c03bc8a217e (patch) | |
tree | 72977c5815926c3220db56122dd8f4ae9377bef2 /release/scripts | |
parent | eab20832d9acaf2c5e7e5a968bc5bbf6e95c2ad2 (diff) |
fix for loosing recent-files when running 'Copy Previous Settings'.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index a7085e51bd3..bb17f5979be 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -1273,11 +1273,15 @@ class WM_OT_copy_prev_settings(Operator): else: shutil.copytree(path_src, path_dst, symlinks=True) + # reload recent-files.txt + bpy.ops.wm.read_history() + # don't loose users work if they open the splash later. if bpy.data.is_saved is bpy.data.is_dirty is False: bpy.ops.wm.read_homefile() else: self.report({'INFO'}, "Reload Start-Up file to restore settings") + return {'FINISHED'} return {'CANCELLED'} |