mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-01 12:43:30 +02:00
Revert "misc: get donation date from settings manager"
This reverts commit 167550abc3
.
Reason for revert: Donation2023VisibleDate will be updated when user select "Not now".
Change-Id: I6f1d6647e947811e78eb8db07ddc955c81e7de0e
This commit is contained in:
parent
aa44599a66
commit
eae76a619a
2 changed files with 2 additions and 4 deletions
|
@ -84,7 +84,7 @@ SettingsPageBase {
|
||||||
ToggleSwitch {
|
ToggleSwitch {
|
||||||
id: enableDonation
|
id: enableDonation
|
||||||
width: parent.width
|
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)
|
checked: UtilsAdapter.getAppValue(Settings.Key.IsDonationVisible)
|
||||||
labelText: JamiStrings.enableDonation
|
labelText: JamiStrings.enableDonation
|
||||||
|
|
|
@ -76,9 +76,7 @@ TipsModel::reset()
|
||||||
tips_.clear();
|
tips_.clear();
|
||||||
|
|
||||||
QDate date = QDate::currentDate();
|
QDate date = QDate::currentDate();
|
||||||
QDate donationStartDate = QDate::fromString(
|
if (date >= QDate::fromString("2023-11-27", "yyyy-MM-dd")) {
|
||||||
settingsManager_->getValue("Donation2023VisibleDate").toString());
|
|
||||||
if (date >= donationStartDate) {
|
|
||||||
tips_.append({{"id", "14"}, {"title", tr("Donate")}, {"desc", ""}, {"type", "donation"}});
|
tips_.append({{"id", "14"}, {"title", tr("Donate")}, {"desc", ""}, {"type", "donation"}});
|
||||||
}
|
}
|
||||||
tips_.append({{"id", "0"}, {"title", tr("Customize")}, {"desc", ""}, {"type", "customize"}});
|
tips_.append({{"id", "0"}, {"title", tr("Customize")}, {"desc", ""}, {"type", "customize"}});
|
||||||
|
|
Loading…
Add table
Reference in a new issue