Ensure onInitialNetworkConfigured is called

This commit is contained in:
tobtoht 2021-05-27 00:24:35 +02:00
parent 2a3d537679
commit 364f503a6b
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
3 changed files with 9 additions and 3 deletions

View file

@ -119,6 +119,8 @@ void WindowManager::onWalletOpened(Wallet *wallet) {
return; return;
} }
this->onInitialNetworkConfigured();
// Create new mainwindow with wallet // Create new mainwindow with wallet
m_splashDialog->hide(); m_splashDialog->hide();
@ -328,9 +330,12 @@ void WindowManager::buildTrayMenu() {
// ######################## NETWORKING ######################## // ######################## NETWORKING ########################
void WindowManager::onInitialNetworkConfigured() { void WindowManager::onInitialNetworkConfigured() {
if (!m_initialNetworkConfigured) {
m_initialNetworkConfigured = true;
this->initTor(); this->initTor();
this->initWS(); this->initWS();
} }
}
void WindowManager::initTor() { void WindowManager::initTor() {
torManager()->init(); torManager()->init();

View file

@ -73,6 +73,7 @@ private:
bool m_openWalletTriedOnce = false; bool m_openWalletTriedOnce = false;
bool m_openingWallet = false; bool m_openingWallet = false;
bool m_initialNetworkConfigured = false;
}; };