core: Add a periodic donation request (#8981)

Will fire once in december and july. Disableable with `ecosystem:no_donation:nag`
This commit is contained in:
Vaxry 2025-01-10 19:09:40 +01:00 committed by GitHub
parent da9252a23e
commit b5fb6110ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 278 additions and 115 deletions

View file

@ -0,0 +1,16 @@
#pragma once
#include <memory>
class CDonationNagManager {
public:
CDonationNagManager();
// whether the donation nag was shown this boot.
bool fired();
private:
bool m_bFired = false;
};
inline std::unique_ptr<CDonationNagManager> g_pDonationNagManager;