mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 09:00:00 +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.]
|
* @description unsplit the current view.]
|
||||||
*/
|
*/
|
||||||
unsplitCurrentView() {
|
unsplitCurrentView() {
|
||||||
|
if (this.currentView < 0) return;
|
||||||
const currentTab = window.gBrowser.selectedTab;
|
const currentTab = window.gBrowser.selectedTab;
|
||||||
const tabs = this._data[this.currentView].tabs;
|
const tabs = this._data[this.currentView].tabs;
|
||||||
for (const tab of tabs) {
|
for (const tab of tabs) {
|
||||||
|
@ -581,7 +582,7 @@ var gZenViewSplitter = new class {
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleShortcut(gridType) {
|
toggleShortcut(gridType) {
|
||||||
if (gridType === "unsplit" && this.currentView >= 0) {
|
if (gridType === "unsplit") {
|
||||||
this.unsplitCurrentView();
|
this.unsplitCurrentView();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue