Skip to content
Permalink
Browse files

Refactor group and saving

  • Loading branch information...
Raggaer committed Mar 1, 2019
1 parent fb3c25e commit c5763857ef3ec8f3aa2368d20a84c84607cf871b
Showing with 1 addition and 4 deletions.
  1. +0 −1 group.go
  2. +1 −3 save.go
@@ -25,7 +25,6 @@ func mkdir(args []string) {

// Command "rmdir" deletes a group from the current working group
func rmdir(args []string) {
log.Println(args[0])
group := getGroupByNameOrId(args[0])
log.Println(group)
if group == nil || args[0] == recycleBinGroup {
@@ -11,8 +11,6 @@ import (
"github.com/tobischo/gokeepasslib/v2"
)

var confirmDatabaseSave = false

// Shows a database changed message with a save message
func databaseChangedSaveAlert(f *form, answer string) {
// Remember to close the form
@@ -27,7 +25,7 @@ func databaseChangedSaveAlert(f *form, answer string) {
return
}
}
if strings.TrimSpace(answer) != "y" {
if strings.TrimSpace(answer) != "y" && strings.TrimSpace(answer) != "yes" {
return
}
if err := saveDatabase(); err != nil {

0 comments on commit c576385

Please sign in to comment.
You can’t perform that action at this time.