mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-04 13:04:21 +00:00
If saving a remote capture on shutdown, wait for transfer before exit
This commit is contained in:
1 file changed
+7
@@ -912,6 +912,13 @@ bool LiveCapture::checkAllowClose(int totalUnsavedCaptures, bool &noToAll)
|
||||
{
|
||||
bool success = saveCapture(cap, QString());
|
||||
|
||||
// need to wait for the transfer to finish before exiting, when captureCopied() is called
|
||||
// cap->local will become true. Otherwise wait until the transfer is finished or we disconnect
|
||||
// for another reason - and offer a cancel button
|
||||
ShowProgressDialog(
|
||||
this, tr("Transferring file."), [this, cap]() { return !IsConnected() || cap->local; },
|
||||
NULL, [&success]() { success = false; });
|
||||
|
||||
if(!success)
|
||||
{
|
||||
m_IgnoreThreadClosed = false;
|
||||
|
||||
Reference in new issue
Block a user