* don't show metronome popup just because metronome is active in backend

This commit is contained in:
Seth Call 2015-07-23 09:47:14 -05:00
parent e779d25955
commit 2027b90705
2 changed files with 2 additions and 8 deletions

View File

@ -421,7 +421,7 @@ MIX_MODES = context.JK.MIX_MODES;
resolveMetronome: () ->
return null if @metronomeTrackMixers.length == 0
return null if @metronomeTrackMixers.length == 0 || !@session.isMetronomeOpen()
mixer = @metronomeTrackMixers[0]

View File

@ -28,13 +28,7 @@ context = window
# if any participant has the metronome open, then we say this session has the metronome open
isMetronomeOpen: () ->
metronomeOpen = false;
for participant in @participants()
if participant.metronome_open
metronomeOpen = true
break
metronomeOpen
@session? && @session.metronome_active
isPlayingRecording: () ->
# this is the server's state; there is no guarantee that the local tracks