diff --git a/src/components/loadingscreen/LoadingScreen.tsx b/src/components/loadingscreen/LoadingScreen.tsx index 1b26c97d..a2e47d3b 100644 --- a/src/components/loadingscreen/LoadingScreen.tsx +++ b/src/components/loadingscreen/LoadingScreen.tsx @@ -91,7 +91,13 @@ class LoadingScreen extends Component + Checking servers to connect... +
+ This process can take several seconds/minutes depends of the Server's status. + + ), currentStatusIsError: boolean = false, changeAnotherWallet: boolean = false, serverUris: Server[] = []; @@ -166,10 +172,7 @@ class LoadingScreen extends Component { - // checking servers - const prevCurrentStatus = this.state.currentStatus; - + loadServer = async () => { // Try to read the default server const settings = await ipcRenderer.invoke("loadSettings"); console.log('SETTINGS;;;;;;;;;', settings); @@ -227,11 +230,10 @@ class LoadingScreen extends Component App needs to check the srvers. + // if empty is the first time and if auto => App needs to check the servers. let servers: Server[] = this.state.serverUris; if (selection === 'auto' && servers.length === 0) { - this.setState({ currentStatus: "Checking " + serverUrisList().length + " servers to connect..." }); servers = this.calculateServerLatency(serverUrisList()).filter(s => s.latency !== null).sort((a, b) => (a.latency ? a.latency : Infinity) - (b.latency ? b.latency : Infinity)); server = servers[0].uri; chain_name = servers[0].chain_name; @@ -239,10 +241,9 @@ class LoadingScreen extends Component