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:
Rob Watson 2025-04-03 20:13:07 +02:00
parent 54cfe3a55f
commit cd2c339c10

View File

@ -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) {