Skip to content
Snippets Groups Projects
Verified Commit 3a27fa8d authored by meskio's avatar meskio :tent:
Browse files

[feat] change the donation notification timeout to 1 hour

- Resolves: #57
parent e811786f
Branches
Tags
No related merge requests found
...@@ -53,8 +53,8 @@ func newNotificator(conf *systrayConfig) *notificator { ...@@ -53,8 +53,8 @@ func newNotificator(conf *systrayConfig) *notificator {
} }
func (n *notificator) donations() { func (n *notificator) donations() {
time.Sleep(time.Minute * 5)
for { for {
time.Sleep(time.Hour)
if n.conf.needsNotification() { if n.conf.needsNotification() {
letsDonate := dialog.Message(printer.Sprintf(donationText, applicationName)). letsDonate := dialog.Message(printer.Sprintf(donationText, applicationName)).
Title(printer.Sprintf("Donate")). Title(printer.Sprintf("Donate")).
...@@ -66,7 +66,6 @@ func (n *notificator) donations() { ...@@ -66,7 +66,6 @@ func (n *notificator) donations() {
n.conf.setDonated() n.conf.setDonated()
} }
} }
time.Sleep(time.Hour)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment