Fix processing of --updatedone

* Mark update as not available before starting up and creating main window.
This commit is contained in:
baldurk
2018-07-24 17:45:20 +01:00
parent bf29896f96
commit 94694e0923
+7 -7
View File
@@ -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);