Control default sink volume if none other select
This commit is contained in:
parent
c344c39419
commit
b609387e49
|
@ -1079,11 +1079,13 @@ class Graph extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
_hotKeyVolume(direction) {
|
_hotKeyVolume(direction) {
|
||||||
if (!this.state.selected) {
|
let pai;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const pai = dgoToPai.get(this.state.selected);
|
if (this.state.selected) {
|
||||||
|
pai = dgoToPai.get(this.state.selected);
|
||||||
|
} else {
|
||||||
|
pai = getDefaultSinkPai({ pulse: this.props });
|
||||||
|
}
|
||||||
|
|
||||||
if (!pai) {
|
if (!pai) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user