File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -964,13 +964,15 @@ impl App {
964
964
match & self . steam_state {
965
965
Ok ( _) => {
966
966
if ui. button ( tr ( "connect_steam_create" ) ) . clicked ( ) {
967
+ self . set_settings ( ) ;
967
968
self . start_steam_host ( ) ;
968
969
}
969
970
if ui. button ( tr ( "connect_steam_connect" ) ) . clicked ( ) {
970
971
let id = ClipboardProvider :: new ( )
971
972
. and_then ( |mut ctx : ClipboardContext | ctx. get_contents ( ) ) ;
972
973
match id {
973
974
Ok ( id) => {
975
+ self . set_settings ( ) ;
974
976
self . connect_to_steam_lobby ( id) ;
975
977
}
976
978
Err ( error) => self . notify_error ( error) ,
@@ -982,6 +984,7 @@ impl App {
982
984
ui. label ( tr ( "connect_steam_workaround_label" ) ) ;
983
985
ui. text_edit_singleline ( & mut self . lobby_id_field ) ;
984
986
if ui. button ( tr ( "connect_steam_connect_2" ) ) . clicked ( ) {
987
+ self . set_settings ( ) ;
985
988
self . connect_to_steam_lobby ( self . lobby_id_field . clone ( ) ) ;
986
989
}
987
990
}
@@ -997,6 +1000,7 @@ impl App {
997
1000
998
1001
ui. label ( tr ( "ip_note" ) ) ;
999
1002
if ui. button ( tr ( "ip_host" ) ) . clicked ( ) {
1003
+ self . set_settings ( ) ;
1000
1004
self . start_server ( ) ;
1001
1005
}
1002
1006
@@ -1011,6 +1015,7 @@ impl App {
1011
1015
ui. add_enabled_ui ( addr. is_ok ( ) , |ui| {
1012
1016
if ui. button ( tr ( "ip_connect" ) ) . clicked ( ) {
1013
1017
if let Ok ( addr) = addr {
1018
+ self . set_settings ( ) ;
1014
1019
self . start_connect ( addr) ;
1015
1020
}
1016
1021
}
You can’t perform that action at this time.
0 commit comments