mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
fix: return wrong model when gh tui open
This commit is contained in:
@@ -66,6 +66,9 @@ func (m GitHubUserModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
case tea.KeyMsg:
|
case tea.KeyMsg:
|
||||||
switch msg.String() {
|
switch msg.String() {
|
||||||
case "ctrl+c", "esc":
|
case "ctrl+c", "esc":
|
||||||
|
if parent_m != nil {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
return m, tea.Quit
|
return m, tea.Quit
|
||||||
case "ctrl+t": // Toggle temp mode
|
case "ctrl+t": // Toggle temp mode
|
||||||
if m.tempAuthShow {
|
if m.tempAuthShow {
|
||||||
|
|||||||
Reference in New Issue
Block a user