Skip to content

Commit

Permalink
fix: only show 10 recent passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
sdanialraza committed Feb 28, 2024
1 parent 8f9f1c1 commit 8f59e46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ impl App for PasswordGenerator {

recent_passwords.dedup();

recent_passwords.truncate(10);

storage.set_string("recent_passwords", json!(recent_passwords).to_string());
}

Expand Down

0 comments on commit 8f59e46

Please sign in to comment.