diff --git a/src/browser/app/profile/browser.inc b/src/browser/app/profile/browser.inc index a3fd17cdd..69f49d510 100644 --- a/src/browser/app/profile/browser.inc +++ b/src/browser/app/profile/browser.inc @@ -50,3 +50,6 @@ pref("app.update.checkInstallTime.days", 6); // TODO: Check this out! pref("browser.profiles.enabled", false); pref("browser.tabs.groups.enabled", false); + +// Open new download in the current tabs +pref("browser.link.open_newwindow", 1); diff --git a/src/browser/app/profile/features.inc b/src/browser/app/profile/features.inc index 19078f491..f92e9ba98 100644 --- a/src/browser/app/profile/features.inc +++ b/src/browser/app/profile/features.inc @@ -22,7 +22,7 @@ pref('zen.mediacontrols.enabled', true); // Exposure: pref('zen.haptic-feedback.enabled', true); -pref('zen.mods.auto-update-days', 12); // In days +pref('zen.mods.auto-update-days', 20); // In days #ifdef MOZILLA_OFFICIAL pref('zen.mods.auto-update', true); pref('zen.rice.api.url', 'https://share.zen-browser.app', locked); diff --git a/src/browser/components/preferences/zen-settings.js b/src/browser/components/preferences/zen-settings.js index f5f6e4919..179637919 100644 --- a/src/browser/components/preferences/zen-settings.js +++ b/src/browser/components/preferences/zen-settings.js @@ -209,7 +209,7 @@ var gZenMarketplaceManager = { for (const mod of Object.values(mods)) { mod.modId = mod.id; - window.ZenInstallMod(mod); + await window.ZenInstallMod(mod); } } catch (error) { console.error('[ZenSettings:ZenMods]: Error while importing mods:', error); diff --git a/src/browser/themes/shared/zen-icons/icons.css b/src/browser/themes/shared/zen-icons/icons.css index 3991eb85a..9cf05d3ea 100644 --- a/src/browser/themes/shared/zen-icons/icons.css +++ b/src/browser/themes/shared/zen-icons/icons.css @@ -435,6 +435,11 @@ #zen-glance-sidebar-split { list-style-image: url('split.svg'); + + &[disabled='true'] { + opacity: 0.5; + cursor: not-allowed; + } } #sidebar-box[sidebarcommand='viewTabsSidebar'] diff --git a/src/zen/split-view/ZenViewSplitter.mjs b/src/zen/split-view/ZenViewSplitter.mjs index ffa68222f..c67b4fa71 100644 --- a/src/zen/split-view/ZenViewSplitter.mjs +++ b/src/zen/split-view/ZenViewSplitter.mjs @@ -897,7 +897,9 @@ class ZenViewSplitter extends ZenDOMOperatedFeature { tabCount: window.gBrowser.selectedTabs.length, }); document.getElementById('context_zenSplitTabs').setAttribute('data-l10n-args', tabCountInfo); - document.getElementById('context_zenSplitTabs').disabled = !this.contextCanSplitTabs(); + document + .getElementById('context_zenSplitTabs') + .setAttribute('disabled', !this.contextCanSplitTabs()); }); } @@ -951,7 +953,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature { window.gContextMenu.target.ownerDocument.location.href; const currentTab = gZenGlanceManager.getTabOrGlanceParent(window.gBrowser.selectedTab); const newTab = this.openAndSwitchToTab(url, { inBackground: false }); - this.splitTabs([currentTab, newTab], 'grid', 1); + this.splitTabs([currentTab, newTab], undefined, 1); } /** @@ -1028,7 +1030,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature { * Splits the given tabs. * * @param {Tab[]} tabs - The tabs to split. - * @param {string} gridType - The type of grid layout. + * @param {string|undefined} gridType - The type of grid layout. */ splitTabs(tabs, gridType, initialIndex = 0) { // TODO: Add support for splitting essential tabs @@ -1874,9 +1876,11 @@ class ZenViewSplitter extends ZenDOMOperatedFeature { } maybeDisableOpeningTabOnSplitView() { + const shouldBeDisabled = !this.canOpenLinkInSplitView(); document .getElementById('cmd_zenSplitViewLinkInNewTab') - .setAttribute('disabled', !this.canOpenLinkInSplitView()); + .setAttribute('disabled', shouldBeDisabled); + document.getElementById('zen-glance-sidebar-split').setAttribute('disabled', shouldBeDisabled); } canOpenLinkInSplitView() {