From e89aa95673e12af7c479e671267b3caeaf30f7be Mon Sep 17 00:00:00 2001
From: lcoursodon <liam.coursodon@savoirfairelinux.com>
Date: Tue, 17 Oct 2023 14:29:49 -0400
Subject: [PATCH] Donation: show the tipbox only after the 1st November 2023

Change-Id: If2bb725a0be137a55a29cd7592726c4f2c718c8a
---
 src/app/tipsmodel.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/app/tipsmodel.cpp b/src/app/tipsmodel.cpp
index c1dfe0ee7..0759ec8e7 100644
--- a/src/app/tipsmodel.cpp
+++ b/src/app/tipsmodel.cpp
@@ -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"},
-- 
GitLab