Skip to content
Snippets Groups Projects
Commit e89aa956 authored by Liam Coursodon's avatar Liam Coursodon
Browse files

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

Change-Id: If2bb725a0be137a55a29cd7592726c4f2c718c8a
parent 3609dae5
No related branches found
No related tags found
No related merge requests found
......@@ -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"},
......
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