chore(about): remove unimplemented related settings section

This commit is contained in:
W 2024-04-30 00:18:49 +02:00 committed by GitHub
parent a0630a08d1
commit 866971c14a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,6 @@ impl page::Page<crate::pages::Message> for Page {
sections.insert(device()),
sections.insert(hardware()),
sections.insert(os()),
sections.insert(related()),
])
}
@ -185,16 +184,17 @@ fn os() -> Section<crate::pages::Message> {
})
}
fn related() -> Section<crate::pages::Message> {
Section::default()
.title(fl!("about-related"))
.descriptions(vec![fl!("about-related", "support").into()])
.view::<Page>(|_binder, _page, section| {
settings::view_section(&section.title)
.add(settings::item(&*section.descriptions[0], text("TODO")))
.into()
})
}
// Related settings: for 2nd COSMIC release
// fn related() -> Section<crate::pages::Message> {
// Section::default()
// .title(fl!("about-related"))
// .descriptions(vec![fl!("about-related", "support").into()])
// .view::<Page>(|_binder, _page, section| {
// settings::view_section(&section.title)
// .add(settings::item(&*section.descriptions[0], text("TODO")))
// .into()
// })
// }
// fn page(app: &crate::SettingsApp) -> &Page {
// app.pages