cleanup(workspaces): remove overview thumbnails section
This commit is contained in:
parent
534849cc6a
commit
d74fb12e9f
1 changed files with 0 additions and 24 deletions
|
|
@ -71,7 +71,6 @@ impl page::Page<crate::pages::Message> for Page {
|
|||
) -> Option<page::Content> {
|
||||
Some(vec![
|
||||
sections.insert(multi_behavior()),
|
||||
sections.insert(overview_thumbnails()),
|
||||
sections.insert(workspace_orientation()),
|
||||
])
|
||||
}
|
||||
|
|
@ -157,29 +156,6 @@ fn multi_behavior() -> Section<crate::pages::Message> {
|
|||
})
|
||||
}
|
||||
|
||||
fn overview_thumbnails() -> Section<crate::pages::Message> {
|
||||
Section::default()
|
||||
.title(fl!("workspaces-overview-thumbnails"))
|
||||
.descriptions(vec![
|
||||
fl!("workspaces-overview-thumbnails", "show-number").into(),
|
||||
fl!("workspaces-overview-thumbnails", "show-name").into(),
|
||||
])
|
||||
.view::<Page>(|_binder, page, section| {
|
||||
let descriptions = §ion.descriptions;
|
||||
settings::view_section(§ion.title)
|
||||
.add(
|
||||
settings::item::builder(&*descriptions[0])
|
||||
.toggler(page.show_workspace_number, Message::SetShowNumber),
|
||||
)
|
||||
.add(
|
||||
settings::item::builder(&*descriptions[1])
|
||||
.toggler(page.show_workspace_name, Message::SetShowName),
|
||||
)
|
||||
.apply(Element::from)
|
||||
.map(crate::pages::Message::DesktopWorkspaces)
|
||||
})
|
||||
}
|
||||
|
||||
fn workspace_orientation() -> Section<crate::pages::Message> {
|
||||
Section::default()
|
||||
.title(fl!("workspaces-orientation"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue