Skip to content

Commit

Permalink
9 pagens in menu, change features in indicatif
Browse files Browse the repository at this point in the history
The longer menu will make it more readable
The termion feature will decrease the binary size a little
  • Loading branch information
auyer committed Feb 18, 2023
1 parent 951a240 commit 1e8c07e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 50 deletions.
77 changes: 29 additions & 48 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libprotonup/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libprotonup"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
authors = ["Auyer <auyer@rcpassos.me>"]
repository = "https://github.com/auyer/protonup-rs"
Expand Down
2 changes: 1 addition & 1 deletion protonup-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description = "TUI Program for Custom Proton Download and installation written i
[dependencies]

libprotonup = { path = "../libprotonup" }
inquire = "0.5"
inquire = { version = "0.5", default-features = false, features = ["termion"] }
indicatif = { version = "0.17", features = [
"improved_unicode",
"unicode-segmentation",
Expand Down
1 change: 1 addition & 0 deletions protonup-rs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ async fn main() {
}

let answer: Menu = Select::new("ProtonUp Menu: Chose your action:", Menu::VARIANTS.to_vec())
.with_page_size(9)
.prompt()
.unwrap_or_else(|_| std::process::exit(0));

Expand Down

0 comments on commit 1e8c07e

Please sign in to comment.