Skip to content

Commit

Permalink
Show "(click ...)" when fade duration is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrichards42 committed Nov 15, 2020
1 parent c07b749 commit df1919f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions standalone/app/ui/TrackList.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ def loudness_label(track):

def fade_in_label(track):
duration = track['filters'].get('fade_in', {}).get('duration', 0)
return f"{duration} seconds"
if duration > 0:
return f"{duration} seconds"


def fade_out_label(track):
duration = track['filters'].get('fade_out', {}).get('duration', 0)
return f"{duration} seconds"
if duration > 0:
return f"{duration} seconds"


# == Panel ==
Expand Down

0 comments on commit df1919f

Please sign in to comment.