提交 a0e3b0b0 编写于 作者: E Eugene Pankov

tell the user how to mute the WSL bell (fixes #413)

上级 d7db132c
......@@ -29,7 +29,11 @@ h3.mt-3.mb-3 Terminal
[value]='"audible"'
)
| Audible
.alert.alert-info.d-flex.align-items-center(*ngIf='config.store.terminal.bell != "audible" && config.store.terminal.shell.startsWith("wsl")')
.mr-auto WSL terminal bell can only be muted via Volume Mixer
button.btn.btn-secondary((click)='openWSLVolumeMixer()') Show Mixer
.form-line
.header
.title Right click
......
import { Component } from '@angular/core'
import { ConfigService } from 'terminus-core'
import { ConfigService, ElectronService } from 'terminus-core'
import { TerminalService } from '../services/terminal.service'
@Component({
template: require('./terminalSettingsTab.component.pug'),
......@@ -7,5 +8,16 @@ import { ConfigService } from 'terminus-core'
export class TerminalSettingsTabComponent {
constructor (
public config: ConfigService,
private electron: ElectronService,
private terminal: TerminalService,
) { }
openWSLVolumeMixer () {
this.electron.shell.openItem('sndvol.exe')
this.terminal.openTab({
id: '',
command: 'wsl.exe',
args: ['tput', 'bel'],
}, null, true)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册