T44d Web · The gallery's start takes its defaults from one place

This commit is contained in:
ZacharyZhang-NY committed 2026-09-29 19:16:41 -04:00
1 parent 95db323797
commit 2a132d7d41
3 files changed
+10 -20

No files matched your search

+2 -7
View File
@@ -96,6 +96,7 @@ fn choose(window: WindowHandle<shell::Gallery>, choice: shell::Choice, cx: &mut
}
/// What the gallery opens on.
#[derive(Default)]
pub struct Start {
pub page: usize,
/// One section, by title or slug, drawn alone.
@@ -154,13 +155,7 @@ struct Args {
#[cfg(not(target_family = "wasm"))]
fn parse_args() -> Result<Args> {
let mut args = Args {
start: Start {
page: 0,
story: None,
choice: shell::Choice::Light,
narrow: None,
failure: None,
},
start: Start::default(),
page: None,
capture: None,
};