Skip to content

Commit

Permalink
πŸ› Fix reversed condition on 'refresh: ask' prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mleduque committed Dec 23, 2023
1 parent 1d56813 commit 4aeff21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ fn use_from_cache(opts: &DownloadOpts, file_name: &PathBuf) -> Result<bool> {
RefreshCondition::Never => Ok(file_name.exists()),
RefreshCondition::Ask => {
let name = file_name.as_os_str().to_string_lossy();
Ok(dialoguer::Confirm::new().with_prompt(format!("Refresh this mod archive? ({name})")).interact()?)
Ok(!dialoguer::Confirm::new().with_prompt(format!("Refresh this mod archive? ({name})")).interact()?)
}
RefreshCondition::Duration(duration) => {
let metadata = match std::fs::metadata(file_name) {
Expand Down

0 comments on commit 4aeff21

Please sign in to comment.