mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
Call view.FocusNextItem() after loginButton press to skip quitButton and prevent unexpected termination.
This commit is contained in:
parent
d64ec156a4
commit
cda9f9ba4c
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ func (ui *GomuksUI) NewLoginView() mauview.Component {
|
|||
view.password.SetMaskCharacter('*')
|
||||
|
||||
view.quitButton.SetOnClick(func() { ui.gmx.Stop(true) }).SetBackgroundColor(tcell.ColorDarkCyan)
|
||||
view.loginButton.SetOnClick(view.Login).SetBackgroundColor(tcell.ColorDarkCyan)
|
||||
view.loginButton.SetOnClick(func() { view.Login(); view.FocusNextItem(); }).SetBackgroundColor(tcell.ColorDarkCyan)
|
||||
|
||||
view.SetColumns([]int{1, 10, 1, 9, 1, 9, 1, 10, 1})
|
||||
view.SetRows([]int{1, 1, 1, 1, 1, 1, 1, 1, 1, 1})
|
||||
|
|
Loading…
Add table
Reference in a new issue