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