repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
ca51aef
parent
d3c5dba
author
Eric Bower
date
2024-05-04 03:32:06 +0000 UTC
fix(tui): don't delete account when active key is deleted (#130)

1 files changed,  +2, -1
M tui/keys/keys.go
+2, -1
 1@@ -174,8 +174,9 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 2 					m.state = stateNormal
 3 					return m, unlinkKey(m)
 4 				case stateDeletingActiveKey:
 5+					m.state = stateQuitting
 6 					// Active key will be deleted. Remove the key and exit.
 7-					fallthrough
 8+					return m, unlinkKey(m)
 9 				case stateDeletingAccount:
10 					// Account will be deleted. Remove the key and exit.
11 					m.state = stateQuitting