Skip to content

Commit

Permalink
fixed Eugeny#9482 - dragged-in panes going to sleep after some time
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Mar 11, 2024
1 parent c3baad4 commit 0894c30
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ tabby-ssh/util/pagent.exe
*.psd

crowdin.yml
.crowdin.env
8 changes: 4 additions & 4 deletions tabby-core/src/components/baseTab.component.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tabby-core/src/components/splitTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0894c30

Please sign in to comment.