1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-19 00:42:33 +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) if (activeMonitors.length === 0)
return return
const volume = Math.round( // We only have sliderVolume if it is a VideoWallpaper
sliderVolume.value * 100) / 100 let volume = 0.0
if (type === InstalledType.VideoWallpaper) {
volume = Math.round(sliderVolume.value * 100) / 100
}
const screenFile = ScreenPlay.installedListModel.get( const screenFile = ScreenPlay.installedListModel.get(
root.contentFolderName).screenFile root.contentFolderName).screenFile