Do not show visualizations button when no audio tracks

This commit is contained in:
Rafostar
2021-05-01 12:11:16 +02:00
parent 2d8471dea0
commit 0e6507682a

View File

@@ -270,7 +270,10 @@ class ClapperWidget extends Gtk.Grid
debug(`${type} caps: ${caps.to_string()}`);
}
if(type === 'video') {
const isShowVis = (parsedInfo[`${type}Tracks`].length === 0);
const isShowVis = (
!parsedInfo.videoTracks.length
&& parsedInfo.audioTracks.length
);
this.showVisualizationsButton(isShowVis);
}
if(!parsedInfo[`${type}Tracks`].length) {