mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 00:10:01 +02:00
Fixed unspliting tabs with shortcuts
This commit is contained in:
parent
d2db3ebef4
commit
d8d3f47178
1 changed files with 2 additions and 1 deletions
|
@ -557,6 +557,7 @@ var gZenViewSplitter = new class {
|
|||
* @description unsplit the current view.]
|
||||
*/
|
||||
unsplitCurrentView() {
|
||||
if (this.currentView < 0) return;
|
||||
const currentTab = window.gBrowser.selectedTab;
|
||||
const tabs = this._data[this.currentView].tabs;
|
||||
for (const tab of tabs) {
|
||||
|
@ -581,7 +582,7 @@ var gZenViewSplitter = new class {
|
|||
}
|
||||
|
||||
toggleShortcut(gridType) {
|
||||
if (gridType === "unsplit" && this.currentView >= 0) {
|
||||
if (gridType === "unsplit") {
|
||||
this.unsplitCurrentView();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue