1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 23:25:30 +02:00

Refactor ZenCustomizableUI and update keyboard shortcuts preferences

This commit is contained in:
mauro-balades 2024-09-23 18:15:22 +02:00
parent 445b21c03d
commit 6c77a913ff
8 changed files with 50 additions and 14 deletions

View file

@ -1,8 +1,8 @@
diff --git a/browser/components/tabbrowser/content/tabbrowser.js b/browser/components/tabbrowser/content/tabbrowser.js
index ef857bd81f2cd7c163ecc74ac1cf81a0b63ce838..c776348e776c1f9efc9b9f2ca479b1050f0a750b 100644
index ef857bd81f2cd7c163ecc74ac1cf81a0b63ce838..215fd93aff26ee8a8dabac2fbf55285fcf8d15e2 100644
--- a/browser/components/tabbrowser/content/tabbrowser.js
+++ b/browser/components/tabbrowser/content/tabbrowser.js
@@ -453,10 +453,12 @@
@@ -453,10 +453,14 @@
},
get _numPinnedTabs() {
@ -13,11 +13,13 @@ index ef857bd81f2cd7c163ecc74ac1cf81a0b63ce838..c776348e776c1f9efc9b9f2ca479b105
+ if (!tab.pinned) {
break;
}
+ i++;
+ if (!tab.hidden) {
+ i++;
+ }
}
return i;
},
@@ -2704,6 +2706,11 @@
@@ -2704,6 +2708,11 @@
);
}
@ -29,7 +31,7 @@ index ef857bd81f2cd7c163ecc74ac1cf81a0b63ce838..c776348e776c1f9efc9b9f2ca479b105
if (!UserInteraction.running("browser.tabs.opening", window)) {
UserInteraction.start("browser.tabs.opening", "initting", window);
}
@@ -2771,6 +2778,9 @@
@@ -2771,6 +2780,9 @@
noInitialLabel,
skipBackgroundNotify,
});
@ -39,7 +41,7 @@ index ef857bd81f2cd7c163ecc74ac1cf81a0b63ce838..c776348e776c1f9efc9b9f2ca479b105
if (insertTab) {
// insert the tab into the tab container in the correct position
this._insertTabAtIndex(t, {
@@ -3248,6 +3258,14 @@
@@ -3248,6 +3260,14 @@
) {
tabWasReused = true;
tab = this.selectedTab;
@ -54,7 +56,7 @@ index ef857bd81f2cd7c163ecc74ac1cf81a0b63ce838..c776348e776c1f9efc9b9f2ca479b105
if (!tabData.pinned) {
this.unpinTab(tab);
} else {
@@ -3297,6 +3315,13 @@
@@ -3297,6 +3317,13 @@
preferredRemoteType,
});
@ -68,7 +70,7 @@ index ef857bd81f2cd7c163ecc74ac1cf81a0b63ce838..c776348e776c1f9efc9b9f2ca479b105
if (select) {
tabToSelect = tab;
}
@@ -4184,6 +4209,7 @@
@@ -4184,6 +4211,7 @@
isLastTab ||
aTab.pinned ||
aTab.hidden ||
@ -76,7 +78,7 @@ index ef857bd81f2cd7c163ecc74ac1cf81a0b63ce838..c776348e776c1f9efc9b9f2ca479b105
this._removingTabs.size >
3 /* don't want lots of concurrent animations */ ||
!aTab.hasAttribute(
@@ -5117,10 +5143,10 @@
@@ -5117,10 +5145,10 @@
SessionStore.deleteCustomTabValue(aTab, "hiddenBy");
},