mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Do not show visualizations button when no audio tracks
This commit is contained in:
@@ -270,7 +270,10 @@ class ClapperWidget extends Gtk.Grid
|
|||||||
debug(`${type} caps: ${caps.to_string()}`);
|
debug(`${type} caps: ${caps.to_string()}`);
|
||||||
}
|
}
|
||||||
if(type === 'video') {
|
if(type === 'video') {
|
||||||
const isShowVis = (parsedInfo[`${type}Tracks`].length === 0);
|
const isShowVis = (
|
||||||
|
!parsedInfo.videoTracks.length
|
||||||
|
&& parsedInfo.audioTracks.length
|
||||||
|
);
|
||||||
this.showVisualizationsButton(isShowVis);
|
this.showVisualizationsButton(isShowVis);
|
||||||
}
|
}
|
||||||
if(!parsedInfo[`${type}Tracks`].length) {
|
if(!parsedInfo[`${type}Tracks`].length) {
|
||||||
|
Reference in New Issue
Block a user