From 3a27fa8dd3da90897b6bc7f8a035f1325313e4ac Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Mon, 25 Jun 2018 18:27:08 +0200 Subject: [feat] change the donation notification timeout to 1 hour - Resolves: #57 --- notificator.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'notificator.go') 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) } } -- cgit v1.2.3