fix(touchpad): compiler error in disable-while-typing toggle
This commit is contained in:
parent
e4b69cd9c1
commit
a9d97b5f4d
1 changed files with 9 additions and 5 deletions
|
|
@ -127,11 +127,15 @@ fn touchpad() -> Section<crate::pages::Message> {
|
|||
)
|
||||
.add(
|
||||
settings::item::builder(&descriptions[disable_while_typing]).toggler(
|
||||
input.input_touchpad.disable_while_typing.unwrap_or(
|
||||
CosmicCompConfig::default()
|
||||
.input_touchpad
|
||||
.disable_while_typing,
|
||||
),
|
||||
input
|
||||
.input_touchpad
|
||||
.disable_while_typing
|
||||
.unwrap_or_else(|| {
|
||||
CosmicCompConfig::default()
|
||||
.input_touchpad
|
||||
.disable_while_typing
|
||||
.unwrap_or(true)
|
||||
}),
|
||||
|enabled| Message::DisableWhileTyping(enabled, true),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue