chore(input): typo in static variable name

This commit is contained in:
Michael Aaron Murphy 2024-02-19 17:56:15 +01:00 committed by Michael Murphy
parent a940bef647
commit 1bf1b39bff
3 changed files with 5 additions and 6 deletions

View file

@ -20,7 +20,7 @@ mod mouse;
mod touchpad;
crate::cache_dynamic_lazy! {
static ACCELERAION_DESC: String = fl!("acceleration-desc");
static ACCELERATION_DESC: String = fl!("acceleration-desc");
static DISABLE_WHILE_TYPING: String = fl!("disable-while-typing");
static PRIMARY_BUTTON: String = fl!("primary-button");
static SCROLLING_NATURAL_DESC: String = fl!("scrolling", "natural-desc");

View file

@ -48,7 +48,7 @@ fn mouse() -> Section<crate::pages::Message> {
super::PRIMARY_BUTTON.as_str().into(),
MOUSE_SPEED.as_str().into(),
MOUSE_ACCELERATION.as_str().into(),
super::ACCELERAION_DESC.as_str().into(),
super::ACCELERATION_DESC.as_str().into(),
])
.view::<Page>(|binder, _page, section| {
let input = binder.page::<super::Page>().expect("input page not found");
@ -75,7 +75,7 @@ fn mouse() -> Section<crate::pages::Message> {
)
.add(
settings::item::builder(&*MOUSE_ACCELERATION)
.description(&*super::ACCELERAION_DESC)
.description(&*super::ACCELERATION_DESC)
.toggler(
input
.input_default

View file

@ -1,4 +1,3 @@
use cosmic::iced::Length;
use cosmic::widget::{self, settings, text};
use cosmic::{Apply, Element};
use cosmic_comp_config::input::{AccelProfile, ScrollMethod};
@ -63,7 +62,7 @@ fn touchpad() -> Section<crate::pages::Message> {
super::PRIMARY_BUTTON.as_str().into(),
TOUCHPAD_SPEED.as_str().into(),
TOUCHPAD_ACCELERAION.as_str().into(),
super::ACCELERAION_DESC.as_str().into(),
super::ACCELERATION_DESC.as_str().into(),
super::DISABLE_WHILE_TYPING.as_str().into(),
])
.view::<Page>(|binder, _page, section| {
@ -91,7 +90,7 @@ fn touchpad() -> Section<crate::pages::Message> {
)
.add(
settings::item::builder(&*TOUCHPAD_ACCELERAION)
.description(&*super::ACCELERAION_DESC)
.description(&*super::ACCELERATION_DESC)
.toggler(
input
.input_touchpad