if windows: no supported image backend
@@ -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() {
