diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-06-25 18:27:08 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-06-25 18:27:08 +0200 |
commit | 3a27fa8dd3da90897b6bc7f8a035f1325313e4ac (patch) | |
tree | b2c241d39afb27da359f69425641f9344204b8a7 /notificator.go | |
parent | e811786fa7f05299262ece132573fcf0d7a1f890 (diff) |
[feat] change the donation notification timeout to 1 hour
- Resolves: #57
Diffstat (limited to 'notificator.go')
-rw-r--r-- | notificator.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/notificator.go b/notificator.go index a69bdb0..1e9e405 100644 --- a/notificator.go +++ b/notificator.go @@ -53,8 +53,8 @@ func newNotificator(conf *systrayConfig) *notificator { } func (n *notificator) donations() { - time.Sleep(time.Minute * 5) for { + time.Sleep(time.Hour) if n.conf.needsNotification() { letsDonate := dialog.Message(printer.Sprintf(donationText, applicationName)). Title(printer.Sprintf("Donate")). @@ -66,7 +66,6 @@ func (n *notificator) donations() { n.conf.setDonated() } } - time.Sleep(time.Hour) } } |