mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-13 05:17:48 +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)) {
|
|| appletItem.originalAppletBehavior)) {
|
||||||
|
|
||||||
//this way improves performance, probably because during animation the preferred sizes update a lot
|
//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;
|
return appletMaximumLength;
|
||||||
} else if (appletMinimumLength > appletItem.metrics.iconSize){
|
} else if (appletMinimumLength > appletItem.metrics.iconSize){
|
||||||
return appletMinimumLength;
|
return appletMinimumLength;
|
||||||
|
Loading…
Reference in New Issue
Block a user