mirror of
https://github.com/Eugeny/tabby
synced 2024-11-14 08:57:21 +00:00
fixed #9482 - dragged-in panes going to sleep after some time
This commit is contained in:
parent
c3baad4525
commit
0894c305ad
3 changed files with 7 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -37,3 +37,4 @@ tabby-ssh/util/pagent.exe
|
|||
*.psd
|
||||
|
||||
crowdin.yml
|
||||
.crowdin.env
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Observable, Subject, distinctUntilChanged, filter, debounceTime } from 'rxjs'
|
||||
import { Observable, Subject, BehaviorSubject, distinctUntilChanged, filter, debounceTime } from 'rxjs'
|
||||
import { EmbeddedViewRef, Injector, ViewContainerRef, ViewRef } from '@angular/core'
|
||||
import { RecoveryToken } from '../api/tabRecovery'
|
||||
import { BaseComponent } from './base.component'
|
||||
|
@ -75,9 +75,9 @@ export abstract class BaseTabComponent extends BaseComponent {
|
|||
private titleChange = new Subject<string>()
|
||||
private focused = new Subject<void>()
|
||||
private blurred = new Subject<void>()
|
||||
private visibility = new Subject<boolean>()
|
||||
private progress = new Subject<number|null>()
|
||||
private activity = new Subject<boolean>()
|
||||
protected visibility = new BehaviorSubject<boolean>(false)
|
||||
protected progress = new BehaviorSubject<number|null>(null)
|
||||
protected activity = new BehaviorSubject<boolean>(false)
|
||||
private destroyed = new Subject<void>()
|
||||
|
||||
private _destroyCalled = false
|
||||
|
|
|
@ -471,6 +471,8 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
|
|||
}
|
||||
tab.removeFromContainer()
|
||||
tab.parent = this
|
||||
|
||||
tab.emitVisibility(this.visibility.value)
|
||||
}
|
||||
|
||||
let target = relative ? this.getParentOf(relative) : null
|
||||
|
|
Loading…
Reference in a new issue