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) { setTitle (title: string) {
this.title = title] this.title = title
if (!this.customTitle) { if (!this.customTitle) {
this.titleChange$.next(title) this.titleChange$.next(title)
} }

View File

@ -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 () {

View File

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