Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
fix condition conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
bootjp committed Jul 12, 2020
1 parent f3d138f commit 74a2977
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ func welcomeScreen(a fyne.App, v vrcarjt.AutoRejoin, w fyne.Window) fyne.CanvasO
fyne.LogError(err.Error(), err)
a.Quit()
}
status.SetText("Status: Running")
switch v.IsRun() {
case true:
status.SetText("Status: Running")
case false:
status.SetText("Status: Stop")
}
}),
widget.NewButton("Stop", func() {
if !v.IsRun() {
Expand All @@ -86,7 +91,12 @@ func welcomeScreen(a fyne.App, v vrcarjt.AutoRejoin, w fyne.Window) fyne.CanvasO
fyne.LogError(err.Error(), err)
a.Quit()
}
status.SetText("Stop")
switch v.IsRun() {
case true:
status.SetText("Status: Running")
case false:
status.SetText("Status: Stop")
}
}),
),
),
Expand Down

0 comments on commit 74a2977

Please sign in to comment.