forked from ZenBrowserMirrors/zen-desktop
fix: Fixed import mods button not working, b=(no-bug), c=mods, split-view
This commit is contained in:
parent
bd72aebd98
commit
5c6e5f7361
2 changed files with 11 additions and 1 deletions
|
@ -133,7 +133,8 @@ export class ZenModsMarketplaceChild extends JSWindowActorChild {
|
|||
|
||||
modId = button.getAttribute('zen-theme-id');
|
||||
} else {
|
||||
modId = event.themeId;
|
||||
// Backwards compatibility is... Interesting
|
||||
modId = event.themeId ?? event.modId ?? event.id;
|
||||
}
|
||||
|
||||
this.sendAsyncMessage('ZenModsMarketplace:InstallMod', { modId });
|
||||
|
|
|
@ -1674,6 +1674,15 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
|||
if (splitGroup && (!draggedTab.group || draggedTab.group !== splitGroup)) {
|
||||
this._moveTabsToContainer([draggedTab], droppedOnTab);
|
||||
gBrowser.moveTabToGroup(draggedTab, splitGroup);
|
||||
if (hoverSide === 'left' || hoverSide === 'top') {
|
||||
try {
|
||||
splitGroup.tabs[0].before(draggedTab);
|
||||
} catch (e) {
|
||||
console.warn(
|
||||
`Failed to move tab ${draggedTab.id} before ${splitGroup.tabs[0].id}: ${e}`
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const droppedOnSplitNode = this.getSplitNodeFromTab(droppedOnTab);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue