From c0d980e9c7432e1c59bf6ff90e025192dd43a02f Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Tue, 9 Jun 2026 03:06:12 -0600 Subject: [PATCH] fix(myqbz): replicate the empty-state flash during load (1:1) Drop the `&& !MyQbzState.loading` gate on the zero-items empty states so "No mixtapes yet" / "No collections yet" shows during load instead of a blank, matching the Tauri/Svelte behavior (empty array -> empty state flashes until the load resolves). Per user decision (DQ: replicate). cc --- crates/qbz-slint/ui/myqbz/CollectionsView.slint | 2 +- crates/qbz-slint/ui/myqbz/MixtapesView.slint | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/qbz-slint/ui/myqbz/CollectionsView.slint b/crates/qbz-slint/ui/myqbz/CollectionsView.slint index a4f86c3cc..ff930e17d 100644 --- a/crates/qbz-slint/ui/myqbz/CollectionsView.slint +++ b/crates/qbz-slint/ui/myqbz/CollectionsView.slint @@ -162,7 +162,7 @@ export component CollectionsView inherits Rectangle { Rectangle { height: 16px; } // ====================== EMPTY STATE ======================== - if MyQbzState.collections.length == 0 && MyQbzState.col-search == "" && MyQbzState.col-kind-filter == "all" && !MyQbzState.loading: VerticalLayout { + if MyQbzState.collections.length == 0 && MyQbzState.col-search == "" && MyQbzState.col-kind-filter == "all": VerticalLayout { padding-top: 80px; padding-bottom: 80px; spacing: 16px; diff --git a/crates/qbz-slint/ui/myqbz/MixtapesView.slint b/crates/qbz-slint/ui/myqbz/MixtapesView.slint index d93ef3993..c878373ed 100644 --- a/crates/qbz-slint/ui/myqbz/MixtapesView.slint +++ b/crates/qbz-slint/ui/myqbz/MixtapesView.slint @@ -155,7 +155,7 @@ export component MixtapesView inherits Rectangle { Rectangle { height: 16px; } // ====================== EMPTY STATE ======================== - if MyQbzState.mixtapes.length == 0 && MyQbzState.mix-search == "" && !MyQbzState.loading: VerticalLayout { + if MyQbzState.mixtapes.length == 0 && MyQbzState.mix-search == "": VerticalLayout { padding-top: 80px; padding-bottom: 80px; spacing: 16px;