Skip to content

Commit

Permalink
added period check for xbar update (every 12 hours)
Browse files Browse the repository at this point in the history
  • Loading branch information
matryer committed Mar 30, 2021
1 parent fe7ade9 commit 41e97f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ func (app *app) Start(runtime *wails.Runtime) {
go func() {
// wait before checking for updates
time.Sleep(10 * time.Second)
app.checkForUpdates(true)
for {
app.checkForUpdates(true)
// check again in twelve hours
time.Sleep(12 * time.Hour)
}
}()
}

Expand Down

0 comments on commit 41e97f4

Please sign in to comment.