Show bookmarks with spaces in the name correctly
Take everything in the ~/.gtk-bookmark lines after the URI as label, not only the first word. (eg. if there's a line like "file:///home/rainct/Ubuntu%20One Ubuntu One", now "Ubuntu One" is taken as the label, instead of only "Ubuntu").
This commit is contained in:
parent
cc83aee401
commit
1f864fba7f
@ -131,7 +131,7 @@ Places.prototype = {
|
|||||||
continue;
|
continue;
|
||||||
let label = null;
|
let label = null;
|
||||||
if (components.length > 1)
|
if (components.length > 1)
|
||||||
label = components[1];
|
label = components.slice(1).join(' ');
|
||||||
bookmarksToLabel[bookmark] = label;
|
bookmarksToLabel[bookmark] = label;
|
||||||
bookmarksOrder.push(bookmark);
|
bookmarksOrder.push(bookmark);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user