1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-19 15:05:40 +02:00

Donation: show the tipbox only after the 1st November 2023

Change-Id: If2bb725a0be137a55a29cd7592726c4f2c718c8a
This commit is contained in:
lcoursodon 2023-10-17 14:29:49 -04:00
parent 3609dae584
commit e89aa95673

View file

@ -75,7 +75,10 @@ TipsModel::reset()
beginResetModel();
tips_.clear();
tips_.append({{"id", "14"}, {"title", tr("Donate")}, {"desc", ""}, {"type", "donation"}});
QDate date = QDate::currentDate();
if (date >= QDate::fromString("2023-11-01", "yyyy-MM-dd")) {
tips_.append({{"id", "14"}, {"title", tr("Donate")}, {"desc", ""}, {"type", "donation"}});
}
tips_.append({{"id", "0"}, {"title", tr("Customize")}, {"desc", ""}, {"type", "customize"}});
tips_.append({{"id", "13"}, {"title", tr("Backup account")}, {"desc", ""}, {"type", "backup"}});
tips_.append({{"id", "1"},