From 18d6b5a5b696273c3e5e7e847bbcd6df0f008f46 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Tue, 20 Feb 2024 22:31:18 +0600 Subject: [PATCH] SystemDialog: Simplify superfluous binding of a constant color, add null check --- lookandfeel/contents/systemdialog/SystemDialog.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lookandfeel/contents/systemdialog/SystemDialog.qml b/lookandfeel/contents/systemdialog/SystemDialog.qml index b64a2cd2..ad0c26f5 100644 --- a/lookandfeel/contents/systemdialog/SystemDialog.qml +++ b/lookandfeel/contents/systemdialog/SystemDialog.qml @@ -67,13 +67,13 @@ Item { required property Kirigami.AbstractApplicationWindow window function present() { - root.window.showFullScreen() + window.showFullScreen() } onWindowChanged: { - window.color = Qt.binding(() => { - return Qt.rgba(0, 0, 0, 0.5) - }) + if (window) { + window.color = Qt.rgba(0, 0, 0, 0.5); + } } // load in async to speed up load times (especially on embedded devices)