mirror of
https://github.com/KDE/latte-dock.git
synced 2025-08-21 13:49:29 +03:00
fix bindloops for ClientIndexer.lastVisibleIndex
--they occured when a Client separator was hidden because of its position in the end of items
This commit is contained in:
@ -116,8 +116,8 @@ AbilityDefinition.Indexer {
|
||||
for(var i=0; i<layout.children.length; ++i) {
|
||||
var item = layout.children[i];
|
||||
if (item && item.itemIndex>=0
|
||||
&& hidden.indexOf(item.itemIndex)<0
|
||||
&& separators.indexOf(item.itemIndex)<0
|
||||
&& hidden.indexOf(item.itemIndex)<0
|
||||
&& item.itemIndex < ind) {
|
||||
ind = item.itemIndex;
|
||||
}
|
||||
@ -137,8 +137,8 @@ AbilityDefinition.Indexer {
|
||||
for(var i=0; i<layout.children.length; ++i) {
|
||||
var item = layout.children[i];
|
||||
if (item && item.itemIndex>=0
|
||||
&& hidden.indexOf(item.itemIndex)<0
|
||||
&& separators.indexOf(item.itemIndex)<0
|
||||
&& hidden.indexOf(item.itemIndex)<0
|
||||
&& item.itemIndex > ind) {
|
||||
|
||||
//console.log("org.kde.latte SETTING UP ::: " + item.itemIndex + " / " + layout.children.length);
|
||||
@ -158,8 +158,8 @@ AbilityDefinition.Indexer {
|
||||
for(var i=0; i<layout.children.length; ++i) {
|
||||
var item = layout.children[i];
|
||||
if (item && item.itemIndex>=0
|
||||
&& hidden.indexOf(item.itemIndex)<0
|
||||
&& separators.indexOf(item.itemIndex)<0) {
|
||||
&& separators.indexOf(item.itemIndex)<0
|
||||
&& hidden.indexOf(item.itemIndex)<0) {
|
||||
count = count + 1;
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ AbilityItem.BasicItem {
|
||||
visible: false
|
||||
objectName: "TaskItem"
|
||||
|
||||
isHidden: !visible || isForcedHidden || isSeparatorHidden
|
||||
isHidden: !visible || isForcedHidden
|
||||
|
||||
isHiddenSpacerForcedShow: taskItem.inAttentionAnimation || taskItem.inFastRestoreAnimation
|
||||
isHiddenSpacerAnimated: taskItem.inFastRestoreAnimation
|
||||
|
Reference in New Issue
Block a user