diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-06-24 12:31:10 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-06-24 12:31:10 -0400 |
commit | 1b4c4b0507844abfd44fbbca5bbad302475173d5 (patch) | |
tree | 4d79215853f7fc3e4d8ff6d9ae164e0283cc1b0a /src/util | |
parent | 7cfa5164233a84605cfe59e93470f7770301f286 (diff) |
fix preview script being constantly called on files with no previews available
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/input.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/input.rs b/src/util/input.rs index 0f18e8c..7726bc8 100644 --- a/src/util/input.rs +++ b/src/util/input.rs @@ -81,8 +81,8 @@ pub fn process_dir_preview(context: &mut AppContext, dirlist: JoshutoDirList) { pub fn process_file_preview(context: &mut AppContext, file_preview: FilePreview) { match file_preview.status.code() { - Some(1) | None => {} - _ => { + None => {} + Some(_) => { context .preview_context_mut() .insert_preview(file_preview._path.clone(), file_preview); |