ui/app: rename StageVisible and StageInvisible

StageRunning and StagePaused better reflect their use.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-05-12 14:59:07 +02:00
parent 4441a3e13e
commit e2a1f07b84
8 changed files with 30 additions and 30 deletions
+3 -3
View File
@@ -157,7 +157,7 @@ func createWindow(opts *WindowOptions) error {
}
go func() {
windows <- w.w
w.setStage(StageVisible)
w.setStage(StageRunning)
w.loop()
w.destroy()
conn.destroy()
@@ -935,9 +935,9 @@ func (w *window) updateOutputs() {
}
w.mu.Unlock()
if !found {
w.setStage(StageInvisible)
w.setStage(StagePaused)
} else {
w.setStage(StageVisible)
w.setStage(StageRunning)
w.draw(true)
}
}