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.
This commit is contained in:
lashman
2026-02-28 01:44:41 +02:00
parent 7e93f1632e
commit 4596cce11d

View File

@@ -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");
}
}
}