Differential D3911 Diff 9631 desktoppackage/contents/configuration/ConfigurationContainmentAppearance.qml
Changeset View
Changeset View
Standalone View
Standalone View
desktoppackage/contents/configuration/ConfigurationContainmentAppearance.qml
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Line(s) | 46 | //END functions | |||
---|---|---|---|---|---|
129 | 129 | | |||
130 | QtControls.StackView { | 130 | QtControls.StackView { | ||
131 | id: main | 131 | id: main | ||
132 | Layout.fillHeight: true; | 132 | Layout.fillHeight: true; | ||
133 | anchors { | 133 | anchors { | ||
134 | left: parent.left; | 134 | left: parent.left; | ||
135 | right: parent.right; | 135 | right: parent.right; | ||
136 | } | 136 | } | ||
137 | property string sourceFile | 137 | // Bug 360862: if wallpaper has no config, sourceFile will be "" | ||
138 | // so we wouldn't load emptyConfig and break all over the place | ||||
139 | // hence set it to some random value initially | ||||
140 | property string sourceFile: "tbd" | ||||
138 | onSourceFileChanged: { | 141 | onSourceFileChanged: { | ||
139 | if (sourceFile) { | 142 | if (sourceFile) { | ||
140 | var props = {} | 143 | var props = {} | ||
141 | 144 | | |||
142 | var wallpaperConfig = configDialog.wallpaperConfiguration | 145 | var wallpaperConfig = configDialog.wallpaperConfiguration | ||
143 | for (var key in wallpaperConfig) { | 146 | for (var key in wallpaperConfig) { | ||
144 | props["cfg_" + key] = wallpaperConfig[key] | 147 | props["cfg_" + key] = wallpaperConfig[key] | ||
145 | } | 148 | } | ||
Show All 19 Lines |