From ab330d85de850b0cee14262aa240ebe86507f0bf Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 15 Jun 2026 13:07:40 -0600 Subject: [PATCH] fix(slint/discover): open playlist on body-click in Search and Label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new ("playlist","play") media-action arm gave these cards a body-click action for the first time. Without body-opens they defaulted to play, so a playlist card body-click played instead of opening (and before the arm existed, did nothing at all). Set body-opens:true on the Search carousel, Search grid, and Label carousel so body-click opens the playlist while the overlay button plays — matching the album-card convention and Tauri. cc --- crates/qbz-slint/ui/label/LabelPageView.slint | 1 + crates/qbz-slint/ui/search/SearchResultsView.slint | 2 ++ 2 files changed, 3 insertions(+) diff --git a/crates/qbz-slint/ui/label/LabelPageView.slint b/crates/qbz-slint/ui/label/LabelPageView.slint index f1ba56d01..c931b8896 100644 --- a/crates/qbz-slint/ui/label/LabelPageView.slint +++ b/crates/qbz-slint/ui/label/LabelPageView.slint @@ -370,6 +370,7 @@ export component LabelPageView inherits Rectangle { if LabelState.playlists.length > 0: PlaylistCarousel { title: @tr("Playlists"); playlists: LabelState.playlists; + body-opens: true; // body click opens the playlist; the overlay button plays media-action(kind, id, action) => { root.media-action(kind, id, action); } diff --git a/crates/qbz-slint/ui/search/SearchResultsView.slint b/crates/qbz-slint/ui/search/SearchResultsView.slint index f336e910a..458c9b0b6 100644 --- a/crates/qbz-slint/ui/search/SearchResultsView.slint +++ b/crates/qbz-slint/ui/search/SearchResultsView.slint @@ -257,6 +257,7 @@ component PlaylistGrid inherits Rectangle { x: Math.mod(i, root.columns) * (root.card-w + root.gap); y: Math.floor(i / root.columns) * (root.card-h + root.gap); playlist: playlist; + body-opens: true; // body click opens the playlist; the overlay button plays media-action(k, ii, a) => { root.media-action(k, ii, a); } @@ -601,6 +602,7 @@ export component SearchResultsView inherits Rectangle { if SearchState.tab == 0 && SearchState.playlists.length > 0: PlaylistCarousel { title: @tr("Playlists"); playlists: SearchState.playlists; + body-opens: true; // body click opens the playlist; the overlay button plays show-view-all: true; media-action(k, i, a) => { root.media-action(k, i, a); } view-all-clicked => { SearchActions.tab-changed(4); }