From 4596cce11d92cf1b83b01b0b9f36df2d9e0cb7db Mon Sep 17 00:00:00 2001 From: lashman Date: Sat, 28 Feb 2026 01:44:41 +0200 Subject: [PATCH] Default to Catalog tab when library is empty on first launch When no AppImages are found in the database, switch the ViewStack to the Catalog page so users see the discovery experience first. --- src/window.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/window.rs b/src/window.rs index bc2e407..2b7ed2a 100644 --- a/src/window.rs +++ b/src/window.rs @@ -1009,8 +1009,11 @@ impl DriftwoodWindow { library_view.populate(records); } _ => { - // Empty database - show empty state + // Empty database - show empty state and default to Catalog tab library_view.set_state(LibraryState::Empty); + if let Some(view_stack) = self.imp().view_stack.get() { + view_stack.set_visible_child_name("catalog"); + } } }