diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-10-06 20:19:12 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-10-06 20:19:18 +0200 |
commit | efde1a428e63be02a9f3e17df9f25490c8c0983c (patch) | |
tree | 135bc865bef7362bf8087a825cc24c824b4e0a00 /pkg/config | |
parent | 1cd5398a59202b7782d894beb86c3de450783441 (diff) |
[feat] increase donation reminder interval to one week
- Resolves: #358
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/gui.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/config/gui.go b/pkg/config/gui.go index 3df1197..f5ae7a2 100644 --- a/pkg/config/gui.go +++ b/pkg/config/gui.go @@ -24,6 +24,7 @@ import ( const ( oneDay = time.Hour * 24 + oneWeek = oneDay * 7 oneMonth = oneDay * 30 ) @@ -72,7 +73,7 @@ func (c *Config) SetUserStoppedVPN(vpnStopped bool) error { } func (c *Config) NeedsDonationReminder() bool { - return !c.hasDonated() && c.file.LastReminded.Add(oneDay).Before(time.Now()) + return !c.hasDonated() && c.file.LastReminded.Add(oneWeek).Before(time.Now()) } func (c *Config) hasDonated() bool { |