Browse Source

Cleanup vehicle state request, and initial setValues()

ui_file
Gregory Rudolph 3 years ago
parent
commit
5a45d165a3
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 7
      main.go

7
main.go

@ -117,15 +117,14 @@ func main() { @@ -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

Loading…
Cancel
Save