1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-16 07:22:34 +02:00

Fix NaN value when starting wallpaper other than video

This commit is contained in:
Elias Steurer 2020-08-07 18:14:01 +02:00
parent e1b40a7d4c
commit 0b2a66ff41

View File

@ -369,8 +369,12 @@ Item {
if (activeMonitors.length === 0)
return
const volume = Math.round(
sliderVolume.value * 100) / 100
// We only have sliderVolume if it is a VideoWallpaper
let volume = 0.0
if (type === InstalledType.VideoWallpaper) {
volume = Math.round(sliderVolume.value * 100) / 100
}
const screenFile = ScreenPlay.installedListModel.get(
root.contentFolderName).screenFile