mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Don't display progress dialog if process has already finished.
This commit is contained in:
@@ -1643,6 +1643,9 @@ QStringList ParseArgsList(const QString &args)
|
||||
void ShowProgressDialog(QWidget *window, const QString &labelText, ProgressFinishedMethod finished,
|
||||
ProgressUpdateMethod update)
|
||||
{
|
||||
if(finished())
|
||||
return;
|
||||
|
||||
RDProgressDialog dialog(labelText, window);
|
||||
|
||||
// if we don't have an update function, set the progress display to be 'infinite spinner'
|
||||
|
||||
Reference in New Issue
Block a user