Ensure onInitialNetworkConfigured is called

This commit is contained in:
tobtoht
2021-05-27 00:24:35 +02:00
parent 2a3d537679
commit 364f503a6b
3 changed files with 9 additions and 3 deletions
+7 -2
View File
@@ -119,6 +119,8 @@ void WindowManager::onWalletOpened(Wallet *wallet) {
return;
}
this->onInitialNetworkConfigured();
// Create new mainwindow with wallet
m_splashDialog->hide();
@@ -328,8 +330,11 @@ void WindowManager::buildTrayMenu() {
// ######################## NETWORKING ########################
void WindowManager::onInitialNetworkConfigured() {
this->initTor();
this->initWS();
if (!m_initialNetworkConfigured) {
m_initialNetworkConfigured = true;
this->initTor();
this->initWS();
}
}
void WindowManager::initTor() {