@@ -2125,6 +2125,11 @@ var App = (function(App, undefined) {
21252125 settings . lightWalletUser = lightWalletUser ;
21262126 lightWalletHostChange = true ;
21272127 }
2128+ } else {
2129+ if ( settings . hasOwnProperty ( "lightWalletUser" ) ) {
2130+ delete settings [ "lightWalletUser" ]
2131+ lightWalletHostChange = true ;
2132+ }
21282133 }
21292134
21302135 if ( configuration . hasOwnProperty ( "lightWalletPassword" ) ) {
@@ -2133,6 +2138,11 @@ var App = (function(App, undefined) {
21332138 settings . lightWalletPassword = lightWalletPassword ;
21342139 lightWalletHostChange = true ;
21352140 }
2141+ } else {
2142+ if ( settings . hasOwnProperty ( "lightWalletPassword" ) ) {
2143+ delete settings [ "lightWalletPassword" ]
2144+ lightWalletHostChange = true ;
2145+ }
21362146 }
21372147 } else {
21382148 if ( configuration . hasOwnProperty ( "nodes" ) ) {
@@ -2221,10 +2231,16 @@ var App = (function(App, undefined) {
22212231 if ( relaunch || ! App . windowIsReady ( ) ) {
22222232 App . relaunchApplication ( ) ;
22232233 } else if ( lightWalletHostChange && settings . lightWallet == 1 ) {
2224- win . webContents . send ( "updateSettings" , {
2234+ var updatedSettings = {
22252235 "host" : settings . lightWalletHost ,
22262236 "port" : settings . lightWalletPort
2227- } ) ;
2237+ } ;
2238+ if ( settings . lightWalletUser ) {
2239+ updatedSettings . lightWalletUser = settings . lightWalletUser ;
2240+ updatedSettings . lightWalletPassword = settings . lightWalletPassword ;
2241+ }
2242+
2243+ win . webContents . send ( "updateSettings" , updatedSettings ) ;
22282244 } else {
22292245 win . webContents . send ( "updateSettings" , {
22302246 "depth" : settings . depth ,
0 commit comments