1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-28 18:50:40 +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 33aa5d9195
commit 83600f4eb8

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;