зеркало из https://github.com/mozilla/gecko-dev.git
Bug 518666 - address missed updates.
This commit is contained in:
Родитель
b411f52ae0
Коммит
c6bd5c428e
|
@ -306,17 +306,19 @@ var WinTaskbarJumpList =
|
|||
if (!list || list.length == 0)
|
||||
return true;
|
||||
|
||||
let count = 0;
|
||||
for (let idx = 0; idx < list.length; idx++) {
|
||||
let entry = list[idx];
|
||||
let shortcut = this._getHandlerAppItem(entry.title, entry.title, entry.uri, 1);
|
||||
if (idx >= this._maxItemCount)
|
||||
if (count >= this._maxItemCount)
|
||||
break;
|
||||
// do not add items to recent that have already been added
|
||||
// to frequent.
|
||||
if (this._frequentHashList &&
|
||||
this._frequentHashList.indexOf(entry.uri) != -1)
|
||||
return;
|
||||
continue;
|
||||
items.appendElement(shortcut, false);
|
||||
count++;
|
||||
}
|
||||
return this._buildCustom(_getString("taskbar.recent.label"), items);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче