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:
parent
81c298114b
commit
9ce7c5b72d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user