1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

respect applet maximumLength==0

--if the applet has set maximum length to
zero then the applet should not be shown
This commit is contained in:
Michail Vourlakos 2021-10-25 18:24:14 +03:00
parent 81c298114b
commit 9ce7c5b72d

View File

@ -296,7 +296,7 @@ Item{
|| appletItem.originalAppletBehavior)) {
//this way improves performance, probably because during animation the preferred sizes update a lot
if (appletMaximumLength>0 && appletMaximumLength < appletItem.metrics.iconSize){
if (appletMaximumLength>=0 && appletMaximumLength < appletItem.metrics.iconSize){
return appletMaximumLength;
} else if (appletMinimumLength > appletItem.metrics.iconSize){
return appletMinimumLength;