mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Warning if XSwiftBus version does not match swift pilot client version
This commit is contained in:
committed by
Mat Sutcliffe
parent
f90486fcdc
commit
3dd13051e5
@@ -14,9 +14,11 @@
|
||||
#include "blackmisc/network/networkutils.h"
|
||||
#include "blackmisc/db/distributionlist.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/stringutils.h"
|
||||
#include "blackconfig/buildconfig.h"
|
||||
|
||||
#include<QDesktopServices>
|
||||
#include <QDesktopServices>
|
||||
#include <QMessageBox>
|
||||
|
||||
using namespace BlackConfig;
|
||||
using namespace BlackCore::Application;
|
||||
@@ -119,14 +121,23 @@ namespace BlackGui
|
||||
|
||||
void CUpdateInfoComponent::downloadXSwiftBusDialog()
|
||||
{
|
||||
const QString currentXsb = ui->cb_ArtifactsXsb->currentText();
|
||||
const QString currentSwift = ui->cb_ArtifactsPilotClient->currentText();
|
||||
|
||||
if (!stringCompare(currentXsb, currentSwift, Qt::CaseInsensitive))
|
||||
{
|
||||
const QString msg = QStringLiteral("XSwiftBus '%1' does NOT match swift version, download anyway?").arg(currentXsb, currentSwift);
|
||||
const QMessageBox::StandardButton reply = QMessageBox::question(this, QStringLiteral("Download XSwiftBus"), msg, QMessageBox::Yes | QMessageBox::No);
|
||||
if (reply != QMessageBox::Yes) { return; }
|
||||
}
|
||||
|
||||
if (!m_installXSwiftBusDialog)
|
||||
{
|
||||
m_installXSwiftBusDialog.reset(new CInstallXSwiftBusDialog(this));
|
||||
m_installXSwiftBusDialog->setModal(true);
|
||||
}
|
||||
|
||||
const QString current = ui->cb_ArtifactsXsb->currentText();
|
||||
m_installXSwiftBusDialog->setDefaultDownloadName(current);
|
||||
m_installXSwiftBusDialog->setDefaultDownloadName(currentXsb);
|
||||
m_installXSwiftBusDialog->show();
|
||||
}
|
||||
|
||||
|
||||
@@ -116,12 +116,21 @@
|
||||
<item row="0" column="2" rowspan="2">
|
||||
<widget class="QPushButton" name="pb_CheckForUpdates">
|
||||
<property name="text">
|
||||
<string> check again </string>
|
||||
<string>check again</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>pb_CheckForUpdates</tabstop>
|
||||
<tabstop>cb_Channels</tabstop>
|
||||
<tabstop>cb_Platforms</tabstop>
|
||||
<tabstop>cb_ArtifactsPilotClient</tabstop>
|
||||
<tabstop>pb_DownloadInstaller</tabstop>
|
||||
<tabstop>cb_ArtifactsXsb</tabstop>
|
||||
<tabstop>pb_DownloadXSwiftBus</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
Reference in New Issue
Block a user