mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
24 lines
525 B
TypeScript
24 lines
525 B
TypeScript
import { Component } from '@angular/core'
|
|
import { ElectronService } from '../../core/services/electron.service'
|
|
|
|
@Component({
|
|
selector: 'app-toolbar',
|
|
templateUrl: './toolbar.component.html',
|
|
styleUrls: ['./toolbar.component.scss']
|
|
})
|
|
export class ToolbarComponent {
|
|
|
|
constructor(private electronService: ElectronService) { }
|
|
|
|
minimize() {
|
|
this.electronService.currentWindow.minimize()
|
|
}
|
|
|
|
maximize() {
|
|
this.electronService.currentWindow.maximize()
|
|
}
|
|
|
|
close() {
|
|
this.electronService.quit()
|
|
}
|
|
} |