fix time range

This commit is contained in:
eximus
2017-04-01 21:34:38 +01:00
parent 2703aba4f6
commit 8d62091aea

View File

@@ -353,7 +353,7 @@ Rectangle {
// load and randomize playlist
var time = parseInt(new Date().toLocaleTimeString(Qt.locale(),'h'))
if ( time >= 5 || time <= 17 )
if ( time >= 5 && time <= 17 )
playlist.load(Qt.resolvedUrl(config.background_day), 'm3u')
else
playlist.load(Qt.resolvedUrl(config.background_night), 'm3u')