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:
parent
da9252a23e
commit
b5fb6110ab
10 changed files with 278 additions and 115 deletions
16
src/managers/DonationNagManager.hpp
Normal file
16
src/managers/DonationNagManager.hpp
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue