Skip to content

Commit

Permalink
fixed duplicate multiline-paste prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Mar 1, 2024
1 parent 5d8ff72 commit 3f160ee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion tabby-core/src/components/baseTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ export abstract class BaseTabComponent extends BaseComponent {
this.destroyed.next()
}
this.destroyed.complete()
this.hostView.destroy()
}

/** @hidden */
Expand Down
2 changes: 1 addition & 1 deletion tabby-core/src/components/splitTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions tabby-core/src/services/tabs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3f160ee

Please sign in to comment.