From 500c28cb261ee558498bf4b26f8a2d7028e15ada Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 4 Feb 2017 19:24:37 +0200 Subject: [PATCH] clean up the code --- containment/contents/ui/PanelBox.qml | 6 ++---- containment/contents/ui/VisibilityManager.qml | 4 ---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/containment/contents/ui/PanelBox.qml b/containment/contents/ui/PanelBox.qml index a3859358b..d309d03c5 100644 --- a/containment/contents/ui/PanelBox.qml +++ b/containment/contents/ui/PanelBox.qml @@ -129,13 +129,11 @@ Item{ var icons = root.statesLineSize + root.iconSize + root.iconMargin + 1; var panels = root.themePanelSize + root.panelMargin; + root.realPanelThickness = icons; if (icons > panels) { - root.realPanelThickness = icons; return panels; } else { - var pan = icons; - root.realPanelThickness = pan; - return pan; + return icons; } } } diff --git a/containment/contents/ui/VisibilityManager.qml b/containment/contents/ui/VisibilityManager.qml index d1caf6afb..48fdde176 100644 --- a/containment/contents/ui/VisibilityManager.qml +++ b/containment/contents/ui/VisibilityManager.qml @@ -303,10 +303,6 @@ Item{ var fixedThickness = root.realPanelThickness; - // if(panelIsBiggerFromIconSize && !root.drawShadowsExternal) { - // fixedThickness = thicknessNormal - root.panelShadow; - // } - if (plasmoid.formFactor === PlasmaCore.Types.Vertical) { newMaskArea.width = fixedThickness; } else {