cleaning up

mine
derailed 2020-07-23 12:07:30 -06:00
parent 251221c19b
commit 70712f0fee
1 changed files with 2 additions and 0 deletions

View File

@ -71,12 +71,14 @@ func (a *App) QueueUpdateDraw(f func()) {
}()
}
// IsRunning checks if app is actually running.
func (a *App) IsRunning() bool {
a.mx.RLock()
defer a.mx.RUnlock()
return a.running
}
// SetRunning sets the app run state.
func (a *App) SetRunning(f bool) {
a.mx.Lock()
defer a.mx.Unlock()