summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-06-25 18:27:08 +0200
committerRuben Pollan <meskio@sindominio.net>2018-06-25 18:27:08 +0200
commit3a27fa8dd3da90897b6bc7f8a035f1325313e4ac (patch)
treeb2c241d39afb27da359f69425641f9344204b8a7
parente811786fa7f05299262ece132573fcf0d7a1f890 (diff)
[feat] change the donation notification timeout to 1 hour
- Resolves: #57
-rw-r--r--notificator.go3
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)
}
}