mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 625295 - Allow for per-engine sort parameters to download bookmarks by sortindex. r=rnewman
This commit is contained in:
parent
f25cf095d1
commit
17f7932e3f
@ -702,6 +702,9 @@ SyncEngine.prototype = {
|
||||
_recordObj: CryptoWrapper,
|
||||
version: 1,
|
||||
|
||||
// Which sortindex to use when retrieving records for this engine.
|
||||
_defaultSort: undefined,
|
||||
|
||||
// A relative priority to use when computing an order
|
||||
// for engines to be synced. Higher-priority engines
|
||||
// (lower numbers) are synced first.
|
||||
@ -929,6 +932,10 @@ SyncEngine.prototype = {
|
||||
newitems = this._itemSource();
|
||||
}
|
||||
|
||||
if (this._defaultSort) {
|
||||
newitems.sort = this._defaultSort;
|
||||
}
|
||||
|
||||
if (isMobile) {
|
||||
batchSize = MOBILE_BATCH_SIZE;
|
||||
}
|
||||
|
@ -202,6 +202,7 @@ BookmarksEngine.prototype = {
|
||||
_storeObj: BookmarksStore,
|
||||
_trackerObj: BookmarksTracker,
|
||||
version: 2,
|
||||
_defaultSort: "index",
|
||||
|
||||
syncPriority: 4,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user