update title depending on state

tzemanovic
Feb 7, 2026, 7:49 PM
2BBEMNZKZWXHEISLT25PGIAIGQSJPWSL7ZV25T7E2KMBLAOUPORQC

Dependencies

Change contents

  • replacement in inflorescence/src/main.rs at line 71
    [3.273][3.273:309]()
    .title("Inflorescence")
    [3.273]
    [3.309]
    .title(title)
  • replacement in inflorescence/src/main.rs at line 76
    [3.357][4.3609441:3609493]()
    let _ = (update_managing_repo, view, subs);
    [3.357]
    [3.395]
    let _ = (update_managing_repo, view, subs, title);
  • edit in inflorescence/src/main.rs at line 2373
    [4.3636764]
    [2.20154]
    }
    fn title(state: &State, _: window::Id) -> String {
    const APP: &str = "Inflorescence";
    match &state.model.sub {
    model::SubState::PickingProject(_)
    | model::SubState::PickingRepoDir(_) => {
    format!("{APP}: project picker")
    }
    model::SubState::ManagingRepo(managing_repo) => {
    format!(
    "{APP}: {}",
    managing_repo
    .repo_path
    .file_name()
    .map(|name| name.to_string_lossy())
    .unwrap_or_else(|| managing_repo
    .repo_path
    .to_string_lossy())
    )
    }
    }