Control default sink volume if none other select

This commit is contained in:
futpib 2018-11-21 01:06:59 +03:00
parent c344c39419
commit b609387e49

View File

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