parent
ab91536059
commit
e2552f604d
1 changed files with 6 additions and 2 deletions
|
|
@ -13,6 +13,7 @@ Item {
|
||||||
|
|
||||||
property string source: Wallpapers.current
|
property string source: Wallpapers.current
|
||||||
property Image current: one
|
property Image current: one
|
||||||
|
property bool completed
|
||||||
|
|
||||||
onSourceChanged: {
|
onSourceChanged: {
|
||||||
if (!source)
|
if (!source)
|
||||||
|
|
@ -25,13 +26,16 @@ Item {
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (source)
|
if (source)
|
||||||
Qt.callLater(() => one.update());
|
Qt.callLater(() => {
|
||||||
|
one.update();
|
||||||
|
completed = true;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
active: !root.source
|
active: root.completed && !root.source
|
||||||
|
|
||||||
sourceComponent: StyledRect {
|
sourceComponent: StyledRect {
|
||||||
color: Colours.palette.m3surfaceContainer
|
color: Colours.palette.m3surfaceContainer
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue