mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
[Updater] In-app updater
* start downloading automatically in 1st screen * minor changes
This commit is contained in:
committed by
Mat Sutcliffe
parent
5bed714e75
commit
4e3c819f6d
@@ -313,17 +313,15 @@ namespace BlackGui
|
||||
**/
|
||||
}
|
||||
|
||||
const bool started = QProcess::startDetached(executable, arguments, dir.absolutePath());
|
||||
if (started)
|
||||
const bool shutdown = ui->cb_Shutdown->isChecked();
|
||||
const bool started = QProcess::startDetached(executable, arguments, dir.absolutePath());
|
||||
if (started && shutdown && sGui)
|
||||
{
|
||||
const bool shutdown = ui->cb_Shutdown->isChecked();
|
||||
if (sGui && shutdown)
|
||||
QTimer::singleShot(250, sGui, []
|
||||
{
|
||||
QTimer::singleShot(1000, sGui, []
|
||||
{
|
||||
CGuiApplication::exit();
|
||||
});
|
||||
}
|
||||
if (!sGui) { return; }
|
||||
CGuiApplication::exit();
|
||||
});
|
||||
break;
|
||||
}
|
||||
} // files
|
||||
|
||||
@@ -174,7 +174,7 @@ namespace BlackGui
|
||||
{
|
||||
m_downloadDialog->setMode(CDownloadComponent::SwiftInstaller);
|
||||
m_downloadDialog->setDownloadFile(artifact.asRemoteFile());
|
||||
m_downloadDialog->show();
|
||||
m_downloadDialog->showAndStartDownloading();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user