cleanup
This commit is contained in:
parent
3125cb98e8
commit
5b11950b72
1 changed files with 3 additions and 6 deletions
|
|
@ -85,9 +85,8 @@ pub fn behavior_and_position() -> Section<crate::pages::Message> {
|
||||||
])
|
])
|
||||||
.view::<Page>(|_binder, page, section| {
|
.view::<Page>(|_binder, page, section| {
|
||||||
let descriptions = §ion.descriptions;
|
let descriptions = §ion.descriptions;
|
||||||
let panel_config = match page.panel_config.as_ref() {
|
let Some(panel_config) = page.panel_config.as_ref() else {
|
||||||
Some(panel_config) => panel_config,
|
return Element::from(text(fl!("unknown")));
|
||||||
None => return Element::from(text(fl!("unknown"))),
|
|
||||||
};
|
};
|
||||||
settings::view_section(§ion.title)
|
settings::view_section(§ion.title)
|
||||||
.add(settings::item(
|
.add(settings::item(
|
||||||
|
|
@ -143,9 +142,7 @@ pub fn style() -> Section<crate::pages::Message> {
|
||||||
])
|
])
|
||||||
.view::<Page>(|_binder, page, section| {
|
.view::<Page>(|_binder, page, section| {
|
||||||
let descriptions = §ion.descriptions;
|
let descriptions = §ion.descriptions;
|
||||||
let panel_config = if let Some(panel_config) = page.panel_config.as_ref() {
|
let Some(panel_config) = page.panel_config.as_ref() else {
|
||||||
panel_config
|
|
||||||
} else {
|
|
||||||
return Element::from(text(fl!("unknown")));
|
return Element::from(text(fl!("unknown")));
|
||||||
};
|
};
|
||||||
settings::view_section(§ion.title)
|
settings::view_section(§ion.title)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue