mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
Fix setup wizard unable to download xswiftbus from GitHub
This commit is contained in:
@@ -102,7 +102,7 @@ namespace BlackGui
|
|||||||
void CInstallXSwiftBusComponent::installXSwiftBus()
|
void CInstallXSwiftBusComponent::installXSwiftBus()
|
||||||
{
|
{
|
||||||
const CRemoteFile rf = this->getRemoteFileSelected();
|
const CRemoteFile rf = this->getRemoteFileSelected();
|
||||||
const QString downloadFileName = CFileUtils::appendFilePathsAndFixUnc(this->downloadDir(), rf.getName());
|
const QString downloadFileName = CFileUtils::appendFilePathsAndFixUnc(this->downloadDir(), rf.getBaseName());
|
||||||
QPointer<CInstallXSwiftBusComponent> myself(this);
|
QPointer<CInstallXSwiftBusComponent> myself(this);
|
||||||
QFile downloadFile(downloadFileName);
|
QFile downloadFile(downloadFileName);
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ namespace BlackGui
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString destFileName = CFileUtils::appendFilePathsAndFixUnc(xSwiftBusDirectory, rf.getName());
|
const QString destFileName = CFileUtils::appendFilePathsAndFixUnc(xSwiftBusDirectory, rf.getBaseName());
|
||||||
{
|
{
|
||||||
QFile destFile(destFileName);
|
QFile destFile(destFileName);
|
||||||
if (destFile.exists())
|
if (destFile.exists())
|
||||||
@@ -199,7 +199,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
if (!sGui || !sGui->hasWebDataServices() || sGui->isShuttingDown()) { return; }
|
if (!sGui || !sGui->hasWebDataServices() || sGui->isShuttingDown()) { return; }
|
||||||
const CRemoteFile rf = this->getRemoteFileSelected();
|
const CRemoteFile rf = this->getRemoteFileSelected();
|
||||||
if (!rf.getName().contains(CBuildConfig::getVersionString()))
|
if (!rf.getBaseName().contains(CBuildConfig::getVersionString()))
|
||||||
{
|
{
|
||||||
const QMessageBox::StandardButton reply = QMessageBox::question(this,
|
const QMessageBox::StandardButton reply = QMessageBox::question(this,
|
||||||
"Download XSwiftBus",
|
"Download XSwiftBus",
|
||||||
@@ -227,7 +227,7 @@ namespace BlackGui
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString saveAsFile = CFileUtils::appendFilePathsAndFixUnc(ui->le_DownloadDir->text(), rf.getName());
|
const QString saveAsFile = CFileUtils::appendFilePathsAndFixUnc(ui->le_DownloadDir->text(), rf.getBaseName());
|
||||||
const QFile saveFile(saveAsFile);
|
const QFile saveFile(saveAsFile);
|
||||||
if (saveFile.exists())
|
if (saveFile.exists())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user