Skip to content

Commit

Permalink
Merge pull request #266 from jamesmcm/filter_provider_list
Browse files Browse the repository at this point in the history
Filter out non-provider Providers from dialoguer prompt
  • Loading branch information
jamesmcm committed Apr 11, 2024
2 parents 2d2b63a + e81cf6a commit 4e6e87f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ use crate::args::WrappedArg;
pub fn sync_menu(uiclient: &dyn UiClient) -> anyhow::Result<()> {
let variants = WrappedArg::<VpnProvider>::value_variants()
.iter()
.filter(|x| x.to_variant() != VpnProvider::Custom)
.filter(|x| {
![VpnProvider::Custom, VpnProvider::None, VpnProvider::Warp].contains(&x.to_variant())
})
.map(|x| x.to_variant().to_string())
.collect::<Vec<String>>();

Expand Down

0 comments on commit 4e6e87f

Please sign in to comment.