Skip to content

Commit

Permalink
fix(touchpad): compiler error in disable-while-typing toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Jan 6, 2025
1 parent e4b69cd commit a9d97b5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions cosmic-settings/src/pages/input/touchpad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
)
Expand Down

0 comments on commit a9d97b5

Please sign in to comment.