mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-08 02:45:38 +00:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user