fix: return wrong model when gh tui open

This commit is contained in:
Slug-Boi
2025-04-16 13:18:44 +02:00
parent 59674fe823
commit a84843c48a
+3
View File
@@ -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 {