mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix processing of --updatedone
* Mark update as not available before starting up and creating main window.
This commit is contained in:
@@ -347,6 +347,13 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
PythonContext::GlobalInit();
|
||||
|
||||
if(updateApplied)
|
||||
{
|
||||
config.CheckUpdate_UpdateAvailable = false;
|
||||
config.CheckUpdate_UpdateResponse = "";
|
||||
config.Save();
|
||||
}
|
||||
|
||||
CaptureContext ctx(filename, remoteHost, remoteIdent, temp, config);
|
||||
|
||||
Analytics::Prompt(ctx, config);
|
||||
@@ -414,13 +421,6 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if(updateApplied)
|
||||
{
|
||||
config.CheckUpdate_UpdateAvailable = false;
|
||||
config.CheckUpdate_UpdateResponse = "";
|
||||
config.Save();
|
||||
}
|
||||
|
||||
while(ctx.isRunning())
|
||||
{
|
||||
application.processEvents(QEventLoop::WaitForMoreEvents);
|
||||
|
||||
Reference in New Issue
Block a user