From 1e789c09511276a7f86ed7cd80a5ace1a1fba736 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 23 Mar 2020 22:24:31 +0100 Subject: [PATCH] MacOS specific message --- src/blackgui/components/downloadcomponent.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/blackgui/components/downloadcomponent.cpp b/src/blackgui/components/downloadcomponent.cpp index b698e8025..7642dceae 100644 --- a/src/blackgui/components/downloadcomponent.cpp +++ b/src/blackgui/components/downloadcomponent.cpp @@ -14,6 +14,7 @@ #include "blackmisc/logmessage.h" #include "blackmisc/directoryutils.h" #include "blackmisc/fileutils.h" +#include "blackconfig/buildconfig.h" #include #include @@ -23,6 +24,7 @@ #include #include +using namespace BlackConfig; using namespace BlackMisc; using namespace BlackMisc::Db; using namespace BlackMisc::Network; @@ -276,9 +278,19 @@ namespace BlackGui const QDir dir(ui->le_DownloadDir->text()); if (!dir.exists()) { return; } - const QString msg = ui->cb_Shutdown->isChecked() ? - QString("Start '%1' and close swift?") : - QString("Start '%1'?"); + QString msg; + if (CBuildConfig::isRunningOnMacOSPlatform()) + { + 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) {