Enhance debugging for failed fade graph creation

This commit is contained in:
Keith Edmunds 2024-07-26 11:18:29 +01:00
parent 53e169ae6b
commit 9973f00055
2 changed files with 5 additions and 1 deletions

View File

@ -1161,7 +1161,7 @@ class Window(QMainWindow, Ui_MainWindow):
# Show closing volume graph # Show closing volume graph
if track_sequence.current.fade_graph: if track_sequence.current.fade_graph:
log.debug("issue223: play_next: set up fade_graph") log.debug(f"issue223: play_next: set up fade_graph, {track_sequence.current.title=}")
track_sequence.current.fade_graph.GraphWidget = self.widgetFadeVolume track_sequence.current.fade_graph.GraphWidget = self.widgetFadeVolume
track_sequence.current.fade_graph.clear() track_sequence.current.fade_graph.clear()
track_sequence.current.fade_graph.plot() track_sequence.current.fade_graph.plot()

View File

@ -112,6 +112,10 @@ class _FadeCurve:
self.curve = self.GraphWidget.plot(self.graph_array) self.curve = self.GraphWidget.plot(self.graph_array)
if self.curve: if self.curve:
self.curve.setPen(Config.FADE_CURVE_FOREGROUND) self.curve.setPen(Config.FADE_CURVE_FOREGROUND)
else:
log.debug("_FadeCurve.plot: no curve")
else:
log.debug("_FadeCurve.plot: no GraphWidget")
def tick(self, play_time: int) -> None: def tick(self, play_time: int) -> None:
"""Update volume fade curve""" """Update volume fade curve"""