1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-13 21:18:01 +03:00

hide indicators when are user disabled

This commit is contained in:
Michail Vourlakos 2019-02-10 00:29:55 +02:00
parent 6072741374
commit 901b5a9455
2 changed files with 3 additions and 3 deletions

View File

@ -333,9 +333,7 @@ DragDrop.DropArea {
//! for that value between 0.04 - 0.5 of iconSize, this way 100% iconMargin means
//! equal to the iconSize
property int iconMargin: Math.ceil( ((0.5 * (plasmoid.configuration.iconMargin))/100) * iconSize)
property int statesLineSize: (latteApplet && !(root.showWindowsOnlyFromLaunchers && root.activeIndicator === Latte.Types.NoneIndicator))
|| (activeIndicator !== Latte.Types.NoneIndicator) ? Math.ceil( root.iconSize/13 ) : 0
property int statesLineSize: activeIndicator === Latte.Types.NoneIndicator ? 0 : Math.ceil( root.iconSize/13 )
///FIXME: <delete both> I can't remember why this is needed, maybe for the anchorings!!! In order for the Double Layout to not mess the anchorings...
//property int layoutsContainer.mainLayoutPosition: !plasmoid.immutable ? Latte.Types.Center : (root.isVertical ? Latte.Types.Top : Latte.Types.Left)

View File

@ -152,6 +152,7 @@ Item{
|| (((root.position === PlasmaCore.Types.BottomPositioned) || (root.position === PlasmaCore.Types.RightPositioned))
&& root.reverseLinesPosition) )
&& !root.disableAllWindowsFunctionality
&& root.activeIndicator !== Latte.Types.NoneIndicator
visible: active
sourceComponent: Component{
@ -219,6 +220,7 @@ Item{
id: secondIndicator
active: !firstIndicator.active
&& !root.disableAllWindowsFunctionality
&& root.activeIndicator !== Latte.Types.NoneIndicator
visible: active
sourceComponent: Component{