mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 13:30:02 +00:00
feat: tab context menu 'Restart'
This commit is contained in:
parent
8be6f852fb
commit
aa5970b12d
@ -120,6 +120,17 @@ export class CommonOptionsContextMenu extends TabContextMenuItemProvider {
|
||||
label: this.translate.instant('Duplicate'),
|
||||
click: () => this.app.duplicateTab(tab),
|
||||
},
|
||||
{
|
||||
label: this.translate.instant('Restart'),
|
||||
click: () => {
|
||||
this.app.duplicateTab(tab)
|
||||
if (this.app.tabs.includes(tab)) {
|
||||
this.app.closeTab(tab, true)
|
||||
} else {
|
||||
tab.destroy()
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
label: this.translate.instant('Color'),
|
||||
sublabel: currentColor ? this.translate.instant(currentColor) : undefined,
|
||||
|
Loading…
x
Reference in New Issue
Block a user