mirror of
https://github.com/ivabus/pop
synced 2024-12-04 22:15:08 +03:00
fix: no sending while pickingFile
This commit is contained in:
parent
2b19a65b4c
commit
5f884c4946
1 changed files with 1 additions and 1 deletions
|
@ -62,6 +62,6 @@ func (k KeyMap) FullHelp() [][]key.Binding {
|
|||
func (m *Model) updateKeymap() {
|
||||
m.keymap.Attach.SetEnabled(m.state == editingAttachments)
|
||||
canSend := m.From.Value() != "" && m.To.Value() != "" && m.Subject.Value() != "" && m.Body.Value() != ""
|
||||
m.keymap.Send.SetEnabled(canSend && m.state != editingBody)
|
||||
m.keymap.Send.SetEnabled(canSend && m.state != editingBody && m.state != pickingFile)
|
||||
m.keymap.Unattach.SetEnabled(m.state == editingAttachments && len(m.Attachments.Items()) > 0)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue