mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
SystemDialog: Simplify superfluous binding of a constant color, add null check
This commit is contained in:
parent
ec37300c9e
commit
18d6b5a5b6
1 changed files with 4 additions and 4 deletions
|
|
@ -67,13 +67,13 @@ Item {
|
||||||
required property Kirigami.AbstractApplicationWindow window
|
required property Kirigami.AbstractApplicationWindow window
|
||||||
|
|
||||||
function present() {
|
function present() {
|
||||||
root.window.showFullScreen()
|
window.showFullScreen()
|
||||||
}
|
}
|
||||||
|
|
||||||
onWindowChanged: {
|
onWindowChanged: {
|
||||||
window.color = Qt.binding(() => {
|
if (window) {
|
||||||
return Qt.rgba(0, 0, 0, 0.5)
|
window.color = Qt.rgba(0, 0, 0, 0.5);
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// load in async to speed up load times (especially on embedded devices)
|
// load in async to speed up load times (especially on embedded devices)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue