Skip to content

Commit

Permalink
if windows: no supported image backend
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Oct 22, 2020
1 parent 8035b97 commit 84cb871
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/onefetch/image_backends/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ pub fn get_best_backend() -> Option<Box<dyn ImageBackend>> {
}

pub fn check_if_supported(backend_name: &str) -> Result<()> {

#[cfg(windows)]
return Err(format!("{} image backend is not supported", backend_name));

match backend_name {
"kitty" => {
if !kitty::KittyBackend::supported() {
Expand Down

0 comments on commit 84cb871

Please sign in to comment.