File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments