mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
Settings: offline mode
This commit is contained in:
@@ -489,6 +489,7 @@ void WindowManager::onInitialNetworkConfigured() {
|
||||
if (!m_initialNetworkConfigured) {
|
||||
m_initialNetworkConfigured = true;
|
||||
appData();
|
||||
|
||||
this->initTor();
|
||||
this->initWS();
|
||||
}
|
||||
@@ -522,6 +523,10 @@ void WindowManager::onTorSettingsChanged() {
|
||||
}
|
||||
|
||||
void WindowManager::initWS() {
|
||||
if (config()->get(Config::offlineMode).toBool()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (config()->get(Config::disableWebsocket).toBool()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user