Skip to content
Snippets Groups Projects
Commit 4d29e11c authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

macOS: fix build for App Store

Change-Id: Ibd7949810559640bb41d6c0ca796c5db9b7dca91
parent f67a181e
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ extern const QString defaultDownloadPath;
X(EnablePtt, false) \
X(PttKeys, 32) \
X(UseFramelessWindow, USE_FRAMELESS_WINDOW_DEFAULT)
#ifdef APPSTORE
#if APPSTORE
#define KEYS COMMON_KEYS
#else
// Additional key-value pairs for non-APPSTORE builds including donation
......
......@@ -28,7 +28,7 @@
#include <QApplication>
#include <QCryptographicHash>
#include <QtQuick>
#ifdef WITH_WEBENGINE
#if WITH_WEBENGINE
#include <QtWebEngineCore>
#include <QtWebEngineQuick>
#endif
......@@ -74,7 +74,7 @@ main(int argc, char* argv[])
QApplication::setHighDpiScaleFactorRoundingPolicy(
Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#ifdef WITH_WEBENGINE
#if WITH_WEBENGINE
qputenv("QTWEBENGINE_CHROMIUM_FLAGS",
"--disable-web-security"
" --single-process");
......
......@@ -75,7 +75,7 @@ TipsModel::reset()
beginResetModel();
tips_.clear();
#ifndef APPSTORE
#if !APPSTORE
QDate date = QDate::currentDate();
if (date >= QDate::fromString("2023-11-27", "yyyy-MM-dd")) {
tips_.append({{"id", "14"}, {"title", tr("Donate")}, {"desc", ""}, {"type", "donation"}});
......
......@@ -96,7 +96,7 @@ UtilsAdapter::setAppValue(const Settings::Key key, const QVariant& value)
Q_EMIT appThemeChanged();
else if (key == Settings::Key::UseFramelessWindow)
Q_EMIT useFramelessWindowChanged();
#ifndef APPSTORE
#if !APPSTORE
// Any donation campaign-related keys can trigger a donation campaign check
else if (key == Settings::Key::IsDonationVisible
|| key == Settings::Key::Donation2023VisibleDate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment