fix(ui): close UI from main goroutine
This seems to have been unnecessary and can actually cause the app to hang on closing if ctrl-c is pressed when the "add destinations" page is visible.
This commit is contained in:
parent
54cfe3a55f
commit
cd2c339c10
@ -721,9 +721,7 @@ func (ui *UI) redrawFromState(state domain.AppState) {
|
|||||||
|
|
||||||
// Close closes the terminal user interface.
|
// Close closes the terminal user interface.
|
||||||
func (ui *UI) Close() {
|
func (ui *UI) Close() {
|
||||||
ui.app.QueueUpdate(func() {
|
|
||||||
ui.app.Stop()
|
ui.app.Stop()
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ui *UI) ConfigUpdateFailed(err error) {
|
func (ui *UI) ConfigUpdateFailed(err error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user