Verified Commit 4d923b3e authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[desktoppackage] Fix some warnings about nullable containment

parent 5f71db6f
Pipeline #217162 passed with stage
in 6 minutes and 6 seconds
......@@ -173,10 +173,12 @@ Item {
}
// Not using panelOpacity to check as it has a NumberAnimation, and it will thus
// be still read as the initial value here, before the animation starts.
if (opaqueApplets && containment) {
containment.containmentDisplayHints |= PlasmaCore.Types.DesktopFullyCovered
} else {
containment.containmentDisplayHints &= ~PlasmaCore.Types.DesktopFullyCovered
if (containment) {
if (opaqueApplets) {
containment.containmentDisplayHints |= PlasmaCore.Types.DesktopFullyCovered
} else {
containment.containmentDisplayHints &= ~PlasmaCore.Types.DesktopFullyCovered
}
}
}
......@@ -267,6 +269,9 @@ Item {
imagePath: "widgets/tabbar"
prefix: {
if (!root.containment) {
return "";
}
var prefix = ""
switch (root.containment.location) {
case PlasmaCore.Types.LeftEdge:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment