mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
MacOS specific message
This commit is contained in:
committed by
Mat Sutcliffe
parent
4d75c1576e
commit
1e789c0951
@@ -14,6 +14,7 @@
|
|||||||
#include "blackmisc/logmessage.h"
|
#include "blackmisc/logmessage.h"
|
||||||
#include "blackmisc/directoryutils.h"
|
#include "blackmisc/directoryutils.h"
|
||||||
#include "blackmisc/fileutils.h"
|
#include "blackmisc/fileutils.h"
|
||||||
|
#include "blackconfig/buildconfig.h"
|
||||||
|
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
@@ -23,6 +24,7 @@
|
|||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
|
|
||||||
|
using namespace BlackConfig;
|
||||||
using namespace BlackMisc;
|
using namespace BlackMisc;
|
||||||
using namespace BlackMisc::Db;
|
using namespace BlackMisc::Db;
|
||||||
using namespace BlackMisc::Network;
|
using namespace BlackMisc::Network;
|
||||||
@@ -276,9 +278,19 @@ namespace BlackGui
|
|||||||
const QDir dir(ui->le_DownloadDir->text());
|
const QDir dir(ui->le_DownloadDir->text());
|
||||||
if (!dir.exists()) { return; }
|
if (!dir.exists()) { return; }
|
||||||
|
|
||||||
const QString msg = ui->cb_Shutdown->isChecked() ?
|
QString msg;
|
||||||
QString("Start '%1' and close swift?") :
|
if (CBuildConfig::isRunningOnMacOSPlatform())
|
||||||
QString("Start '%1'?");
|
{
|
||||||
|
msg = "To install close swift, "
|
||||||
|
"mount the disk image '%1' and run the installer inside "
|
||||||
|
"to proceed with the update.";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
msg = ui->cb_Shutdown->isChecked() ?
|
||||||
|
QString("Start '%1' and close swift?") :
|
||||||
|
QString("Start '%1'?");
|
||||||
|
}
|
||||||
|
|
||||||
for (const CRemoteFile &rf : executables)
|
for (const CRemoteFile &rf : executables)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user