Make sure copy from remote happens even when not running

This commit is contained in:
baldurk
2016-08-05 21:56:18 +02:00
parent d05f99d1b5
commit 12d5f5bd70
+16 -4
View File
@@ -258,12 +258,24 @@ namespace renderdocui.Code
}));
progressThread.Start();
BeginInvoke((ReplayRenderer r) =>
if (Running)
{
m_Remote.CopyCaptureFromRemote(remotepath, localpath, ref progress);
BeginInvoke((ReplayRenderer r) =>
{
m_Remote.CopyCaptureFromRemote(remotepath, localpath, ref progress);
copied = true;
});
copied = true;
});
}
else
{
Helpers.NewThread(new ThreadStart(() =>
{
m_Remote.CopyCaptureFromRemote(remotepath, localpath, ref progress);
copied = true;
})).Start();
}
modal.ShowDialog(window);