mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
When deleting temp files, remove from the recent file list. Closes #1540
* If the UI was launched with a filename as a parameter to open the capture, it will be added to the recent capture file list. Only later (relatively speaking) if we make a capture connection will we realise that it is temporary and potentially delete the file. If we do so, remove the capture from the recent file list.
This commit is contained in:
@@ -64,7 +64,7 @@ void ReplayManager::OpenCapture(const QString &capturefile, const ReplayOptions
|
||||
|
||||
void ReplayManager::DeleteCapture(const rdcstr &capture, bool local)
|
||||
{
|
||||
if(IsRunning())
|
||||
if(IsRunning() && !m_Thread->isCurrentThread())
|
||||
{
|
||||
AsyncInvoke([this, capture, local](IReplayController *) { DeleteCapture(capture, local); });
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user