Save config file after adding 'recent file'

* This has been bugging me for ages, it's not a problem typically for users
  as the config would be saved on shutdown, but if you're debugging
  renderdoc and you kill the process (by stopping debugging) after loading
  a log but before closing the program, the recent file wouldn't be saved!
This commit is contained in:
baldurk
2015-01-18 10:54:24 +00:00
parent cfab18d878
commit ec1a81cf8b
+5
View File
@@ -461,8 +461,13 @@ namespace renderdocui.Code
}
if (!temporary)
{
m_Config.AddRecentFile(m_Config.RecentLogFiles, logFile, 10);
if (File.Exists(Core.ConfigFilename))
m_Config.Serialize(Core.ConfigFilename);
}
m_FrameID = 0;
m_EventID = 0;