diff --git a/src/app/appsettingsmanager.h b/src/app/appsettingsmanager.h index 18cd49f8de8d599ef8a3833afb91bd2e38b5e154..ac2f57974e7bb2a55294db22e314820e4130c014 100644 --- a/src/app/appsettingsmanager.h +++ b/src/app/appsettingsmanager.h @@ -75,7 +75,7 @@ extern const QString defaultDownloadPath; #define KEYS COMMON_KEYS \ X(Donation2023VisibleDate, "2023-11-27 05:00") \ X(IsDonationVisible, true) \ - X(Donation2023EndDate, "2024-01-31 00:00") + X(Donation2023EndDate2, "2024-04-01 00:00") #endif /* diff --git a/src/app/constant/JamiQmlUtils.qml b/src/app/constant/JamiQmlUtils.qml index 9f9811cfbff306b116a0d82e9885e38e5b869b75..6aa09d739d816c310a4c46cbd3cfddb0916a0463 100644 --- a/src/app/constant/JamiQmlUtils.qml +++ b/src/app/constant/JamiQmlUtils.qml @@ -89,7 +89,7 @@ Item { // The banner is visible if the current date is after the date set in the settings and before the end date // And if the donation toggle is checked const isVisible = UtilsAdapter.getAppValue(Settings.Key.IsDonationVisible); - const endDate = Date.parse(UtilsAdapter.getAppValue(Settings.Key.Donation2023EndDate)); + const endDate = Date.parse(UtilsAdapter.getAppValue(Settings.Key.Donation2023EndDate2)); const startDate = Date.parse(UtilsAdapter.getAppValue(Settings.Key.Donation2023VisibleDate)); const now = new Date(); return isVisible && now < endDate && now >= startDate; diff --git a/src/app/utilsadapter.cpp b/src/app/utilsadapter.cpp index e6bb76ac91fadd4f0a977d76ac61682384198800..a9689eb729107a81043841bcfd71b1af23a462c4 100644 --- a/src/app/utilsadapter.cpp +++ b/src/app/utilsadapter.cpp @@ -98,7 +98,7 @@ UtilsAdapter::setAppValue(const Settings::Key key, const QVariant& value) // Any donation campaign-related keys can trigger a donation campaign check else if (key == Settings::Key::IsDonationVisible || key == Settings::Key::Donation2023VisibleDate - || key == Settings::Key::Donation2023EndDate) + || key == Settings::Key::Donation2023EndDate2) Q_EMIT donationCampaignSettingsChanged(); #endif }