diff options
author | fxqnlr <[email protected]> | 2023-01-29 13:56:06 +0100 |
---|---|---|
committer | fxqnlr <[email protected]> | 2023-01-29 13:56:06 +0100 |
commit | 54752f7eb39e20929a7816c90be33bf8dbff2a6c (patch) | |
tree | 1b2f6d22733c380b0bb6f5a1e9227dc2082da49f /src/commands/modification.rs | |
parent | 57ab6addda10a49c18dc09208dfb319c0205e869 (diff) | |
download | modlist-54752f7eb39e20929a7816c90be33bf8dbff2a6c.tar modlist-54752f7eb39e20929a7816c90be33bf8dbff2a6c.tar.gz modlist-54752f7eb39e20929a7816c90be33bf8dbff2a6c.zip |
fixed not downloading on mod add
Diffstat (limited to 'src/commands/modification.rs')
-rw-r--r-- | src/commands/modification.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/modification.rs b/src/commands/modification.rs index c194202..c82d6b5 100644 --- a/src/commands/modification.rs +++ b/src/commands/modification.rs | |||
@@ -18,7 +18,7 @@ async fn add(config: Cfg, input: Input) -> MLE<()> { | |||
18 | Ok(()) | 18 | Ok(()) |
19 | } | 19 | } |
20 | 20 | ||
21 | pub async fn mod_add(config: Cfg, mod_id: Vec<String>, list: List, disable_download: bool) -> MLE<()> { | 21 | pub async fn mod_add(config: Cfg, mod_id: Vec<String>, list: List, direct_download: bool) -> MLE<()> { |
22 | 22 | ||
23 | //Fix printing (its horrible) | 23 | //Fix printing (its horrible) |
24 | println!("Adding mod(s) {:?}", mod_id); | 24 | println!("Adding mod(s) {:?}", mod_id); |
@@ -80,7 +80,7 @@ pub async fn mod_add(config: Cfg, mod_id: Vec<String>, list: List, disable_downl | |||
80 | }, | 80 | }, |
81 | }; | 81 | }; |
82 | 82 | ||
83 | if !disable_download && current_version.is_some() { download_versions(list.clone(), config.clone(), vec![current_version.unwrap()]).await?; }; | 83 | if direct_download && current_version.is_some() { download_versions(list.clone(), config.clone(), vec![current_version.unwrap()]).await?; }; |
84 | 84 | ||
85 | } | 85 | } |
86 | 86 | ||