Screenblank fix (only keep screen on when video)

This commit is contained in:
Niels 2025-06-08 12:32:38 +02:00
parent 69be0689d6
commit e3ca64391d
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import "../helpers/jsFunctions.js" as JSfunctions
Page {
id: page
property bool keepScreenOn: Qt.application.active && radioPlayer.isPlaying ? true : false
property bool keepScreenOn: Qt.application.active && radioPlayer.isPlaying && radioPlayer.radioVideo ? true : false
allowedOrientations: radioPlayer.isPlaying && radioPlayer.radioVideo ? Orientation.All : Orientation.Portrait

View File

@ -197,7 +197,7 @@ Page {
if (model.url_resolved !== radioPlayer._url_resolved) {
radioPlayer._favicon = model.favicon
radioPlayer._name = model.name
radioPlayer._countrycode = model.countrycode
radioPlayer._cc = model.countrycode
radioPlayer._tags = model.tags
radioPlayer._codec = model.codec//getCodec(model.codec)
radioPlayer._bitrate = model.bitrate //getBitrate(model.bitrate)