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

Revert "misc: get donation date from settings manager"

This reverts commit 167550ab.

Reason for revert: Donation2023VisibleDate will be updated when user select "Not now".

Change-Id: I6f1d6647e947811e78eb8db07ddc955c81e7de0e
parent aa44599a
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ SettingsPageBase {
ToggleSwitch {
id: enableDonation
width: parent.width
visible: new Date() >= new Date(Date.parse(UtilsAdapter.getAppValue(Settings.Key.Donation2023VisibleDate)));
visible: new Date() >= new Date(Date.parse("2023-11-01"))
checked: UtilsAdapter.getAppValue(Settings.Key.IsDonationVisible)
labelText: JamiStrings.enableDonation
......
......@@ -76,9 +76,7 @@ TipsModel::reset()
tips_.clear();
QDate date = QDate::currentDate();
QDate donationStartDate = QDate::fromString(
settingsManager_->getValue("Donation2023VisibleDate").toString());
if (date >= donationStartDate) {
if (date >= QDate::fromString("2023-11-27", "yyyy-MM-dd")) {
tips_.append({{"id", "14"}, {"title", tr("Donate")}, {"desc", ""}, {"type", "donation"}});
}
tips_.append({{"id", "0"}, {"title", tr("Customize")}, {"desc", ""}, {"type", "customize"}});
......
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