File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,8 @@ impl SettingsDialog {
291
291
@weak auth_type,
292
292
@weak user_name,
293
293
@weak tunnel_type,
294
- @weak cert_path => move |widget| {
294
+ @weak cert_path,
295
+ @weak cert_type => move |widget| {
295
296
if let Some ( id) = widget. active_id( ) {
296
297
let factors = unsafe { auth_type. data:: <Vec <String >>( & id) . map( |p| p. as_ref( ) ) } ;
297
298
if let Some ( factors) = factors {
@@ -300,6 +301,9 @@ impl SettingsDialog {
300
301
set_container_visible( user_name. as_ref( ) , !is_saml && !is_cert) ;
301
302
set_container_visible( cert_path. as_ref( ) , is_cert) ;
302
303
dialog. resize( SettingsDialog :: DEFAULT_WIDTH , SettingsDialog :: DEFAULT_HEIGHT ) ;
304
+ if !is_cert {
305
+ cert_type. set_active( Some ( 0 ) ) ;
306
+ }
303
307
if is_saml {
304
308
tunnel_type. set_active( Some ( 0 ) ) ;
305
309
tunnel_type. set_sensitive( false ) ;
@@ -637,7 +641,7 @@ impl SettingsDialog {
637
641
}
638
642
639
643
fn password_box ( & self ) -> gtk:: Box {
640
- let password_box = self . form_box ( "Password (optional) " ) ;
644
+ let password_box = self . form_box ( "Password" ) ;
641
645
password_box. pack_start ( & self . widgets . password , false , true , 0 ) ;
642
646
password_box
643
647
}
You can’t perform that action at this time.
0 commit comments