fix bookmark setting edge not updating

This commit is contained in:
zombieFox 2021-08-14 15:50:00 +01:00
parent c8ca065bd9
commit bdfc1be492
2 changed files with 17 additions and 1 deletions

View File

@ -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();

View File

@ -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();
}
});