1
0
mirror of https://github.com/MatMoul/quickdial-webext.git synced 2024-12-23 07:26:11 +00:00

Bug: Convert separator to empty cell

This commit is contained in:
MatMoul 2017-11-26 13:20:10 +01:00
parent beb52273a2
commit 72ab3e5f6b

View File

@ -436,13 +436,15 @@ app.GridNodes.sync = function(gridNode, rootPath, callback){ // Sync GridNodes w
function syncNode(gridNode, bookmarkItem){
gridNode.id = bookmarkItem.id;
gridNode.title = bookmarkItem.title;
if(bookmarkItem.url){
switch(bookmarkItem.type){
case 'bookmark':
gridNode.type = app.GridNodes.GridNodeType.bookmark;
if(gridNode.url != bookmarkItem.url){
gridNode.url = bookmarkItem.url;
delete gridNode.image;
}
} else if(bookmarkItem.children){
break;
case 'folder':
gridNode.type = app.GridNodes.GridNodeType.folder;
var EmptyNodes = [];
if(! gridNode.children) gridNode.children = [];
@ -484,8 +486,10 @@ app.GridNodes.sync = function(gridNode, rootPath, callback){ // Sync GridNodes w
syncNode(childGridNode, child);
}
EmptyNodes.length = 0;
} else {
break;
default:
gridNode.type = app.GridNodes.GridNodeType.empty;
break;
}
}