diff --git a/main.go b/main.go index 40a1170..5f20b7c 100644 --- a/main.go +++ b/main.go @@ -117,15 +117,14 @@ func main() { centralWidget := widgets.NewQWidget(window, 0) // Set Values for everything - if refresh >= 1{ + setValues() + if refresh >= 1 { go func() { for { - setValues() time.Sleep(time.Duration(refresh) * time.Minute) + setValues() } }() - } else { - setValues() } // Some adjustments