Skip to content
  • Yerrey Dev's avatar
    Fixes issue of metadata/lyrics not updating when switching tracks · db4720e7
    Yerrey Dev authored
    The issue is due to TrackMetadataModel::trackData not providing
    track data for tracks with Database ID of 0, which are tracks that
    are missing title metadata and are not added into elisaDatabase.db.
    In the fix, we remove the ID check. This introduces another issue,
    where in ContextView.qml onDatabaseIdChanged would not update the
    metadata/lyrics because the ID of tracks without metadata would be
    0, and it wouldn't trigger the refresh of tracks changing. To alleviate
    this, we'll instead monitor the filename of the track playing, and
    when that changes, we update trackdata by the file URL.
    
    BUG: 436405
    db4720e7