mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-19 23:15:25 +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 {
|
||||
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"}});
|
||||
|
|
Loading…
Add table
Reference in a new issue