Skip to content

Commit

Permalink
Merge pull request #1 from jacob-ian/fix/save-defaults-each-line
Browse files Browse the repository at this point in the history
Saves the defaults to file after each entry
  • Loading branch information
jacob-ian authored Jun 15, 2024
2 parents a25b7ac + 3f3ea3d commit 8ff2574
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/tui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ func (app *Application) Run() error {
complete = append(complete, txn)
}

err = app.defaults.WriteToFile()
if err != nil {
app.logger.Warn("Could not save vendor to defaults file.\n")
}

idx++
}

Expand Down

0 comments on commit 8ff2574

Please sign in to comment.