From 41e97f4d92e253afc0d561232af41394d2d25020 Mon Sep 17 00:00:00 2001 From: matryer Date: Tue, 30 Mar 2021 13:10:55 +0100 Subject: [PATCH] added period check for xbar update (every 12 hours) --- app/app.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index a4376837f..1f0dd9343 100644 --- a/app/app.go +++ b/app/app.go @@ -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) + } }() }