From bdfc1be4928a98f0e87ee4d54cbbe7028e8f8487 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sat, 14 Aug 2021 15:50:00 +0100 Subject: [PATCH] fix bookmark setting edge not updating --- src/component/bookmarkForm/index.js | 1 - .../menuContent/bookmarkSetting/index.js | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/component/bookmarkForm/index.js b/src/component/bookmarkForm/index.js index dfe6d376..6ec3b37d 100644 --- a/src/component/bookmarkForm/index.js +++ b/src/component/bookmarkForm/index.js @@ -1106,7 +1106,6 @@ export const BookmarkForm = function({ }; if (bookmarkData.link.display.visual.show || bookmarkData.link.display.name.show) { - console.log(this.control.bookmark.display.translate.label); this.control.bookmark.display.translate.label.classList.remove('disabled'); this.control.bookmark.display.translate.x.enable(); this.control.bookmark.display.translate.y.enable(); diff --git a/src/component/menuContent/bookmarkSetting/index.js b/src/component/menuContent/bookmarkSetting/index.js index fb577b55..16b11f9c 100644 --- a/src/component/menuContent/bookmarkSetting/index.js +++ b/src/component/menuContent/bookmarkSetting/index.js @@ -179,8 +179,25 @@ bookmarkSetting.general = (parent) => { path: 'bookmark.newTab', labelText: 'Open Bookmarks in a new tab', action: () => { + groupAndBookmark.render(); + + if (bookmarkSetting.edge.general.size) { + + if (state.get.current().bookmark.show && bookmark.tile.current.length > 0) { + + bookmarkSetting.edge.general.size.update.primary(bookmark.tile.current[0].tile()); + + }; + + } else { + + bookmarkSetting.edge.general.size = new Edge({ primary: bookmark.tile.current[0].tile(), secondary: [bookmark.element.area] }); + + }; + data.save(); + } });