Skip to content

Commit

Permalink
fix: Off-by-one error for added time hidden state
Browse files Browse the repository at this point in the history
  • Loading branch information
JustABubble committed Nov 16, 2024
1 parent 5d74fbc commit 824f188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/list/tracks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ auto List::Tracks::load(const lib::spt::page<lib::spt::track> &page,

constexpr int addedColumn = static_cast<int>(Column::Added);
const auto &hiddenHeaders = settings.general.hidden_song_headers;
const auto isAddedHidden = lib::set::contains(hiddenHeaders, addedColumn);
const auto isAddedHidden = lib::set::contains(hiddenHeaders, addedColumn - 1);

// Hide until track with date is inserted
header()->setSectionHidden(addedColumn, true);
Expand Down

0 comments on commit 824f188

Please sign in to comment.