fixed #9482 - dragged-in panes going to sleep after some time

This commit is contained in:
Eugene 2024-03-11 21:10:39 +01:00
parent c3baad4525
commit 0894c305ad
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
3 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View file

@ -37,3 +37,4 @@ tabby-ssh/util/pagent.exe
*.psd
crowdin.yml
.crowdin.env

View file

@ -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

View file

@ -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