1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-22 11:52:03 +03:00

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 *.psd
crowdin.yml 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 { EmbeddedViewRef, Injector, ViewContainerRef, ViewRef } from '@angular/core'
import { RecoveryToken } from '../api/tabRecovery' import { RecoveryToken } from '../api/tabRecovery'
import { BaseComponent } from './base.component' import { BaseComponent } from './base.component'
@ -75,9 +75,9 @@ export abstract class BaseTabComponent extends BaseComponent {
private titleChange = new Subject<string>() private titleChange = new Subject<string>()
private focused = new Subject<void>() private focused = new Subject<void>()
private blurred = new Subject<void>() private blurred = new Subject<void>()
private visibility = new Subject<boolean>() protected visibility = new BehaviorSubject<boolean>(false)
private progress = new Subject<number|null>() protected progress = new BehaviorSubject<number|null>(null)
private activity = new Subject<boolean>() protected activity = new BehaviorSubject<boolean>(false)
private destroyed = new Subject<void>() private destroyed = new Subject<void>()
private _destroyCalled = false private _destroyCalled = false

View File

@ -471,6 +471,8 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
} }
tab.removeFromContainer() tab.removeFromContainer()
tab.parent = this tab.parent = this
tab.emitVisibility(this.visibility.value)
} }
let target = relative ? this.getParentOf(relative) : null let target = relative ? this.getParentOf(relative) : null