1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-05 05:47:26 +03:00

drop plasmoidName variable from containment

This commit is contained in:
Michail Vourlakos 2021-02-01 17:37:35 +02:00
parent 32a5282517
commit d8fe0e90d5
4 changed files with 9 additions and 8 deletions

View File

@ -89,7 +89,7 @@ Item {
property bool lockZoom: false
property bool isActive: (isExpanded
&& applet.pluginName !== root.plasmoidName
&& !appletItem.communicator.indexerIsSupported
&& applet.pluginName !== "org.kde.activeWindowControl"
&& applet.pluginName !== "org.kde.plasma.appmenu")
@ -295,7 +295,7 @@ Item {
property Item latteStyleApplet: applet && ((applet.pluginName === "org.kde.latte.spacer") || (applet.pluginName === "org.kde.latte.separator")) ?
(applet.children[0] ? applet.children[0] : null) : null
property Item appletWrapper: applet && (applet.pluginName === root.plasmoidName )? wrapper : wrapper.wrapperContainer
property Item appletWrapper: wrapper.wrapperContainer
property Item tooltipVisualParent: titleTooltipParent

View File

@ -49,8 +49,9 @@ Item {
readonly property int shadowSize : appletItem.myView.itemShadow.size
readonly property bool forcedShadow: root.forceTransparentPanel && plasmoid.configuration.appletShadowsEnabled
&& applet && applet.pluginName !== root.plasmoidName ? true : false
readonly property bool forcedShadow: root.forceTransparentPanel
&& plasmoid.configuration.appletShadowsEnabled
&& !appletItem.communicator.indexerIsSupported ? true : false
}
}
}

View File

@ -504,8 +504,10 @@ MouseArea {
if (visualParent && currentApplet
&& (currentApplet.applet || currentApplet.isSeparator || currentApplet.isInternalViewSplitter)) {
configureButton.visible = !currentApplet.isInternalViewSplitter && (currentApplet.applet.pluginName !== root.plasmoidName)
&& currentApplet.applet.action("configure") && currentApplet.applet.action("configure").enabled;
configureButton.visible = !currentApplet.isInternalViewSplitter
&& (currentApplet.applet.pluginName !== "org.kde.latte.plasmoid")
&& currentApplet.applet.action("configure")
&& currentApplet.applet.action("configure").enabled;
closeButton.visible = !currentApplet.isInternalViewSplitter && currentApplet.applet.action("remove") && currentApplet.applet.action("remove").enabled;
lockButton.visible = !currentApplet.isInternalViewSplitter
&& !currentApplet.communicator.indexerIsSupported

View File

@ -318,8 +318,6 @@ Item {
property int widthMargins: root.isVertical ? metrics.totals.thicknessEdges : metrics.totals.lengthEdges
property int heightMargins: root.isHorizontal ? metrics.totals.thicknessEdges : metrics.totals.lengthEdges
readonly property string plasmoidName: "org.kde.latte.plasmoid"
property var iconsArray: [16, 22, 32, 48, 64, 96, 128, 256]
property Item dragOverlay: _dragOverlay