Skip to content

Commit 86ad3bd

Browse files
committed
format -_-
1 parent a020ec2 commit 86ad3bd

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

src/app/pages/settings.rs

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -829,20 +829,24 @@ impl Shelly {
829829
.into(),
830830
tuple_row(
831831
shellcommand_hint_text(theme.clone(), "Hotkey"),
832-
text_input_cell(self.hotkey.clone().unwrap_or("".to_string()), &theme, "Hotkey")
833-
.on_input({
834-
let shell = shell.clone();
835-
move |input| {
836-
let old = shell.clone();
837-
let mut new = old.clone();
838-
new.hotkey = Some(input);
839-
Message::SetConfig(SetConfigFields::ShellCommands(Editable::Update {
840-
old,
841-
new,
842-
}))
843-
}
844-
})
845-
.into(),
832+
text_input_cell(
833+
self.hotkey.clone().unwrap_or("".to_string()),
834+
&theme,
835+
"Hotkey",
836+
)
837+
.on_input({
838+
let shell = shell.clone();
839+
move |input| {
840+
let old = shell.clone();
841+
let mut new = old.clone();
842+
new.hotkey = Some(input);
843+
Message::SetConfig(SetConfigFields::ShellCommands(Editable::Update {
844+
old,
845+
new,
846+
}))
847+
}
848+
})
849+
.into(),
846850
)
847851
.into(),
848852
tuple_row(

0 commit comments

Comments
 (0)