refactor: unify context menus across all views
- Add icons to all context menus (search panel, genre browser, queue panel) matching the track list's established pattern - Standardize navigation wording: "Open album: X" / "Open artist: X" consistently (was "Go to" in search panel, bare "Open Album" in genre browser) - Genre browser album menu: add "Add to favorites" and "Open artist: X" (was missing both) - Genre browser playlist menu: add icon, lowercase "playlist" for consistency - Queue panel menu: add list-remove and go-up icons - Track list: add icon to "Remove from this playlist" action - Search panel album menu: add icons for all actions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -347,7 +347,7 @@ void Tracks::onContextMenu(const QPoint &pos)
|
||||
m_model->data(index, TrackListModel::PlaylistTrackIdRole).toLongLong();
|
||||
if (playlistTrackId > 0) {
|
||||
if (m_userPlaylists.isEmpty()) menu.addSeparator();
|
||||
auto *remFromPl = menu.addAction(tr("Remove from this playlist"));
|
||||
auto *remFromPl = menu.addAction(QIcon(":/res/icons/list-remove.svg"), tr("Remove from this playlist"));
|
||||
const qint64 curPlaylistId = m_playlistId;
|
||||
const int curRow = index.row();
|
||||
connect(remFromPl, &QAction::triggered, this, [this, curPlaylistId, playlistTrackId, curRow] {
|
||||
|
||||
Reference in New Issue
Block a user