From 6a3395286ade1cbf0bf59a0f417ef2a848abe453 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Mon, 1 Nov 2021 19:12:58 +0100 Subject: [PATCH] Fix osx only check --- ScreenPlayWallpaper/qml/Wallpaper.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ScreenPlayWallpaper/qml/Wallpaper.qml b/ScreenPlayWallpaper/qml/Wallpaper.qml index 9457a6a2..069f3d9d 100644 --- a/ScreenPlayWallpaper/qml/Wallpaper.qml +++ b/ScreenPlayWallpaper/qml/Wallpaper.qml @@ -18,12 +18,13 @@ Rectangle { Wallpaper.terminate() } // macOS only supports h264 via the native Qt MM - if (Wallpaper.videoCodec === VideoCodec.VP8 - || Wallpaper.videoCodec === VideoCodec.VP9) { + if (Qt.platform === "osx" && (Wallpaper.videoCodec === VideoCodec.VP8 + || Wallpaper.videoCodec === VideoCodec.VP9)) { loader.source = "qrc:/ScreenPlayWallpaper/qml/MultimediaWebView.qml" } else { loader.source = "qrc:/ScreenPlayWallpaper/qml/MultimediaView.qml" } + fadeIn() break case InstalledType.HTMLWallpaper: loader.setSource("qrc:/ScreenPlayWallpaper/qml/WebView.qml", {