mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Only add log to recent list when it successfully loaded.
This commit is contained in:
@@ -374,9 +374,6 @@ namespace renderdocui.Code
|
||||
|
||||
m_LogLoadingInProgress = true;
|
||||
|
||||
if(!temporary)
|
||||
m_Config.AddRecentFile(m_Config.RecentLogFiles, logFile, 10);
|
||||
|
||||
if (File.Exists(Core.ConfigFilename))
|
||||
m_Config.Serialize(Core.ConfigFilename);
|
||||
|
||||
@@ -454,6 +451,9 @@ namespace renderdocui.Code
|
||||
return;
|
||||
}
|
||||
|
||||
if (!temporary)
|
||||
m_Config.AddRecentFile(m_Config.RecentLogFiles, logFile, 10);
|
||||
|
||||
m_FrameID = 0;
|
||||
m_EventID = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user