mirror of
https://github.com/forge-ext/forge.git
synced 2024-11-20 20:59:46 +03:00
Add setting Auto Exit Tabbed Tiling Mode
This commit is contained in:
parent
f754af0bd5
commit
529ef4a9d7
@ -1217,6 +1217,7 @@ export class Tree extends Node {
|
||||
|
||||
// If only a single tab remains, exit tabbed layout
|
||||
if (
|
||||
this.settings.get_boolean("auto-exit-tabbed") &&
|
||||
parentNode.nodeType === NODE_TYPES.CON &&
|
||||
parentNode.layout === LAYOUT_TYPES.TABBED &&
|
||||
parentNode.childNodes.length === 1
|
||||
|
@ -119,6 +119,12 @@ export class SettingsPage extends PreferencesPage {
|
||||
{ id: "stacked", name: _("Stacked") },
|
||||
],
|
||||
}),
|
||||
new SwitchRow({
|
||||
title: _("Auto Exit Tabbed Tiling Mode"),
|
||||
subtitle: _("Exit tabbed tiling mode when only a single tab remains"),
|
||||
settings,
|
||||
bind: "auto-exit-tabbed",
|
||||
}),
|
||||
new SwitchRow({
|
||||
title: _("Auto Split"),
|
||||
subtitle: _("Quarter Tiling"),
|
||||
|
@ -127,6 +127,10 @@
|
||||
<default>true</default>
|
||||
<summary>Floating windows toggle always-on-top</summary>
|
||||
</key>
|
||||
<key type="b" name="auto-exit-tabbed">
|
||||
<default>true</default>
|
||||
<summary>Exit tabbed tiling mode when only a single tab remains</summary>
|
||||
</key>
|
||||
<key type="b" name="auto-split-enabled">
|
||||
<default>true</default>
|
||||
<summary>Enable auto split or quarter-tiling based based on smaller side</summary>
|
||||
|
Loading…
Reference in New Issue
Block a user