From e3ca64391d6a4f874cc679a7487f50ca59ce3926 Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 8 Jun 2025 12:32:38 +0200 Subject: [PATCH] Screenblank fix (only keep screen on when video) --- qml/pages/RadioPlayerPage.qml | 2 +- qml/pages/SearchStationsPage.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qml/pages/RadioPlayerPage.qml b/qml/pages/RadioPlayerPage.qml index f7e3f1e..03f034b 100644 --- a/qml/pages/RadioPlayerPage.qml +++ b/qml/pages/RadioPlayerPage.qml @@ -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 diff --git a/qml/pages/SearchStationsPage.qml b/qml/pages/SearchStationsPage.qml index b11f7be..d032fb7 100644 --- a/qml/pages/SearchStationsPage.qml +++ b/qml/pages/SearchStationsPage.qml @@ -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)