mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-20 03:20:12 +00:00
namespacing fix
This commit is contained in:
parent
3c3b14bf09
commit
049f08b8f9
@ -25,7 +25,7 @@ export abstract class BaseTabComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setTitle (title: string) {
|
setTitle (title: string) {
|
||||||
this.title = title]
|
this.title = title
|
||||||
if (!this.customTitle) {
|
if (!this.customTitle) {
|
||||||
this.titleChange$.next(title)
|
this.titleChange$.next(title)
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core'
|
import { Injectable } from '@angular/core'
|
||||||
|
import { TouchBar } from 'electron'
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ElectronService {
|
export class ElectronService {
|
||||||
@ -10,7 +11,7 @@ export class ElectronService {
|
|||||||
globalShortcut: any
|
globalShortcut: any
|
||||||
screen: any
|
screen: any
|
||||||
remote: any
|
remote: any
|
||||||
TouchBar: typeof Electron.TouchBar
|
TouchBar: typeof TouchBar
|
||||||
private electron: any
|
private electron: any
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { Injectable, Inject, NgZone } from '@angular/core'
|
import { Injectable, Inject, NgZone } from '@angular/core'
|
||||||
|
import { TouchBarSegmentedControl, SegmentedControlSegment } from 'electron'
|
||||||
import { Subject, Subscription } from 'rxjs'
|
import { Subject, Subscription } from 'rxjs'
|
||||||
import { AppService } from './app.service'
|
import { AppService } from './app.service'
|
||||||
import { ConfigService } from './config.service'
|
import { ConfigService } from './config.service'
|
||||||
@ -10,8 +11,8 @@ import { IToolbarButton, ToolbarButtonProvider } from '../api'
|
|||||||
export class TouchbarService {
|
export class TouchbarService {
|
||||||
tabSelected$ = new Subject<number>()
|
tabSelected$ = new Subject<number>()
|
||||||
private titleSubscriptions = new Map<BaseTabComponent, Subscription>()
|
private titleSubscriptions = new Map<BaseTabComponent, Subscription>()
|
||||||
private tabsSegmentedControl: Electron.TouchBarSegmentedControl
|
private tabsSegmentedControl: TouchBarSegmentedControl
|
||||||
private tabSegments: Electron.SegmentedControlSegment[] = []
|
private tabSegments: SegmentedControlSegment[] = []
|
||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
private app: AppService,
|
private app: AppService,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user