Patch: [#22524] Update Windows Recent Documents on Open/Save
[blender.git] / source / blender / windowmanager / intern / wm_files.c
index b5601f60beeb1909298a57e8c29d39bf4098e5b6..e7165598e38ab3733a3d841ea4939eea2df190d9 100644 (file)
@@ -91,6 +91,7 @@
 #include "ED_util.h"
 
 #include "GHOST_C-api.h"
+#include "GHOST_Path-api.h"
 
 #include "UI_interface.h"
 
@@ -511,6 +512,9 @@ static void write_history(void)
                        }
                        fclose(fp);
                }
+
+               /* also update most recent files on System */
+               GHOST_addToSystemRecentFiles(G.main->name);
        }
 }