mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-20 16:48:39 +02:00
Ensure onInitialNetworkConfigured is called
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -73,6 +73,7 @@ private:
|
||||
|
||||
bool m_openWalletTriedOnce = false;
|
||||
bool m_openingWallet = false;
|
||||
bool m_initialNetworkConfigured = false;
|
||||
};
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ MainWindow::MainWindow(WindowManager *windowManager, Wallet *wallet, QWidget *pa
|
||||
});
|
||||
|
||||
config()->set(Config::firstRun, false);
|
||||
|
||||
|
||||
this->onWalletOpened();
|
||||
|
||||
#ifdef DONATE_BEG
|
||||
|
||||
Reference in New Issue
Block a user