@@ -2116,6 +2116,11 @@ var App = (function(App, undefined) {
21162116 settings . lightWalletUser = lightWalletUser ;
21172117 lightWalletHostChange = true ;
21182118 }
2119+ } else {
2120+ if ( settings . hasOwnProperty ( "lightWalletUser" ) ) {
2121+ delete settings [ "lightWalletUser" ]
2122+ lightWalletHostChange = true ;
2123+ }
21192124 }
21202125
21212126 if ( configuration . hasOwnProperty ( "lightWalletPassword" ) ) {
@@ -2124,6 +2129,11 @@ var App = (function(App, undefined) {
21242129 settings . lightWalletPassword = lightWalletPassword ;
21252130 lightWalletHostChange = true ;
21262131 }
2132+ } else {
2133+ if ( settings . hasOwnProperty ( "lightWalletPassword" ) ) {
2134+ delete settings [ "lightWalletPassword" ]
2135+ lightWalletHostChange = true ;
2136+ }
21272137 }
21282138 } else {
21292139 if ( configuration . hasOwnProperty ( "nodes" ) ) {
@@ -2212,10 +2222,16 @@ var App = (function(App, undefined) {
22122222 if ( relaunch || ! App . windowIsReady ( ) ) {
22132223 App . relaunchApplication ( ) ;
22142224 } else if ( lightWalletHostChange && settings . lightWallet == 1 ) {
2215- win . webContents . send ( "updateSettings" , {
2225+ var updatedSettings = {
22162226 "host" : settings . lightWalletHost ,
22172227 "port" : settings . lightWalletPort
2218- } ) ;
2228+ } ;
2229+ if ( settings . lightWalletUser ) {
2230+ updatedSettings . lightWalletUser = settings . lightWalletUser ;
2231+ updatedSettings . lightWalletPassword = settings . lightWalletPassword ;
2232+ }
2233+
2234+ win . webContents . send ( "updateSettings" , updatedSettings ) ;
22192235 } else {
22202236 win . webContents . send ( "updateSettings" , {
22212237 "depth" : settings . depth ,
0 commit comments