1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-23 21:34:13 +03:00

namespacing fix

This commit is contained in:
Eugene Pankov 2018-03-24 23:45:40 +01:00
parent 3c3b14bf09
commit 049f08b8f9
3 changed files with 6 additions and 4 deletions

View File

@ -25,7 +25,7 @@ export abstract class BaseTabComponent {
}
setTitle (title: string) {
this.title = title]
this.title = title
if (!this.customTitle) {
this.titleChange$.next(title)
}

View File

@ -1,4 +1,5 @@
import { Injectable } from '@angular/core'
import { TouchBar } from 'electron'
@Injectable()
export class ElectronService {
@ -10,7 +11,7 @@ export class ElectronService {
globalShortcut: any
screen: any
remote: any
TouchBar: typeof Electron.TouchBar
TouchBar: typeof TouchBar
private electron: any
constructor () {

View File

@ -1,4 +1,5 @@
import { Injectable, Inject, NgZone } from '@angular/core'
import { TouchBarSegmentedControl, SegmentedControlSegment } from 'electron'
import { Subject, Subscription } from 'rxjs'
import { AppService } from './app.service'
import { ConfigService } from './config.service'
@ -10,8 +11,8 @@ import { IToolbarButton, ToolbarButtonProvider } from '../api'
export class TouchbarService {
tabSelected$ = new Subject<number>()
private titleSubscriptions = new Map<BaseTabComponent, Subscription>()
private tabsSegmentedControl: Electron.TouchBarSegmentedControl
private tabSegments: Electron.SegmentedControlSegment[] = []
private tabsSegmentedControl: TouchBarSegmentedControl
private tabSegments: SegmentedControlSegment[] = []
constructor (
private app: AppService,