mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-08 03:52:42 +01:00
Fix NaN value when starting wallpaper other than video
This commit is contained in:
parent
e1b40a7d4c
commit
0b2a66ff41
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user