diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-09 00:33:39 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-09 00:39:04 +1000 |
commit | d5504fa5d0d4e0312e1b27b8dbe3c6c664395a31 (patch) | |
tree | 8d9987e258df6c69343ea5e410ec7a02db1bde14 /pkg/gui/credentials_panel.go | |
parent | 273aba38d403660127508a1453253100ad802668 (diff) |
potentially fix credentials issuev0.27.2
Diffstat (limited to 'pkg/gui/credentials_panel.go')
-rw-r--r-- | pkg/gui/credentials_panel.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/credentials_panel.go b/pkg/gui/credentials_panel.go index 5911ddff0..ac162ae02 100644 --- a/pkg/gui/credentials_panel.go +++ b/pkg/gui/credentials_panel.go @@ -48,7 +48,7 @@ func (gui *Gui) handleSubmitCredential() error { return err } - return gui.refreshSidePanels(refreshOptions{}) + return gui.refreshSidePanels(refreshOptions{mode: ASYNC}) } func (gui *Gui) handleCloseCredentialsView() error { @@ -78,6 +78,7 @@ func (gui *Gui) handleCredentialsPopup(cmdErr error) { if strings.Contains(errMessage, "Invalid username, password or passphrase") { errMessage = gui.Tr.PassUnameWrong } + _ = gui.returnFromContext() // we are not logging this error because it may contain a password or a passphrase _ = gui.createErrorPanel(errMessage) } else { |