diff --git a/src/app/appsettingsmanager.h b/src/app/appsettingsmanager.h index a31fd941..01161757 100644 --- a/src/app/appsettingsmanager.h +++ b/src/app/appsettingsmanager.h @@ -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 diff --git a/src/app/main.cpp b/src/app/main.cpp index c84d3dc4..ece26cc1 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -28,7 +28,7 @@ #include #include #include -#ifdef WITH_WEBENGINE +#if WITH_WEBENGINE #include #include #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"); diff --git a/src/app/tipsmodel.cpp b/src/app/tipsmodel.cpp index 77d5d90e..95dca617 100644 --- a/src/app/tipsmodel.cpp +++ b/src/app/tipsmodel.cpp @@ -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"}}); diff --git a/src/app/utilsadapter.cpp b/src/app/utilsadapter.cpp index d1575868..ec30a5a3 100644 --- a/src/app/utilsadapter.cpp +++ b/src/app/utilsadapter.cpp @@ -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