Skip to content

Commit

Permalink
Fix screen unblanking
Browse files Browse the repository at this point in the history
Set the window property instead of relying on the windowChanged signal
to provide the value. Otherwise, ScreenBlanker::eventFilter() does
not receive the touch events as expected.

Fixes #1831
  • Loading branch information
blammit committed Jan 15, 2025
1 parent aa24ca7 commit d1b2084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ApplicationContent.qml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import QtQuick
import QtQuick.Window
import QtQuick.Controls as QtQuickControls
import Victron.VenusOS

Expand Down Expand Up @@ -43,12 +44,11 @@ Item {
Component.onCompleted: Global.firmwareUpdate = firmwareUpdate
}

onWindowChanged: function (window) { screenBlanker.window = window }

ScreenBlanker {
id: screenBlanker
enabled: !Global.splashScreenVisible && !(!!Global.pageManager && Global.pageManager.statusBar.notificationButtonVisible)
displayOffTime: displayOffItem.isValid ? 1000*displayOffItem.value : 0.0
window: root.Window.window
property VeQuickItem displayOffItem: VeQuickItem {
uid: !!Global.systemSettings ? Global.systemSettings.serviceUid + "/Settings/Gui/DisplayOff" : ""
}
Expand Down

0 comments on commit d1b2084

Please sign in to comment.