1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-08-15 23:40:32 +03:00

fixed duplicate multiline-paste prompts

This commit is contained in:
Eugene 2024-03-01 20:33:20 +01:00
parent 5d8ff72850
commit 3f160eee46
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
3 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,6 @@ export abstract class BaseTabComponent extends BaseComponent {
this.destroyed.next()
}
this.destroyed.complete()
this.hostView.destroy()
}
/** @hidden */

View File

@ -767,10 +767,10 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
}
destroy (): void {
super.destroy()
for (const x of this.getAllTabs()) {
x.destroy()
}
super.destroy()
}
layout (): void {

View File

@ -37,6 +37,7 @@ export class TabsService {
const componentRef = componentFactory.create(this.injector)
const tab = componentRef.instance
tab.hostView = componentRef.hostView
tab.destroyed$.subscribe(() => componentRef.destroy())
Object.assign(tab, params.inputs ?? {})
return tab
}