mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +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()}`);
|
||||
}
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user