mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
Ensure onInitialNetworkConfigured is called
This commit is contained in:
parent
2a3d537679
commit
364f503a6b
3 changed files with 9 additions and 3 deletions
|
@ -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,8 +330,11 @@ void WindowManager::buildTrayMenu() {
|
||||||
// ######################## NETWORKING ########################
|
// ######################## NETWORKING ########################
|
||||||
|
|
||||||
void WindowManager::onInitialNetworkConfigured() {
|
void WindowManager::onInitialNetworkConfigured() {
|
||||||
this->initTor();
|
if (!m_initialNetworkConfigured) {
|
||||||
this->initWS();
|
m_initialNetworkConfigured = true;
|
||||||
|
this->initTor();
|
||||||
|
this->initWS();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowManager::initTor() {
|
void WindowManager::initTor() {
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ MainWindow::MainWindow(WindowManager *windowManager, Wallet *wallet, QWidget *pa
|
||||||
});
|
});
|
||||||
|
|
||||||
config()->set(Config::firstRun, false);
|
config()->set(Config::firstRun, false);
|
||||||
|
|
||||||
this->onWalletOpened();
|
this->onWalletOpened();
|
||||||
|
|
||||||
#ifdef DONATE_BEG
|
#ifdef DONATE_BEG
|
||||||
|
|
Loading…
Reference in a new issue