Fix KeePassGO open screen field and banner UX
This commit is contained in:
@@ -674,9 +674,22 @@ func (u *ui) runAction(label string, action func() error) {
|
||||
}
|
||||
u.loadingMessage = ""
|
||||
u.state.ErrorMessage = ""
|
||||
if suppressStatusMessage(label) {
|
||||
u.state.StatusMessage = ""
|
||||
return
|
||||
}
|
||||
u.state.StatusMessage = label + " complete"
|
||||
}
|
||||
|
||||
func suppressStatusMessage(label string) bool {
|
||||
switch strings.TrimSpace(label) {
|
||||
case "open vault", "open remote vault":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func actionLoadingLabel(label string) string {
|
||||
label = strings.TrimSpace(label)
|
||||
if label == "" {
|
||||
|
||||
Reference in New Issue
Block a user