mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-25 01:45:35 +02:00
macOS: fix build for App Store
Change-Id: Ibd7949810559640bb41d6c0ca796c5db9b7dca91
This commit is contained in:
parent
f67a181e83
commit
4d29e11cd3
4 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue