Settings: offline mode

This commit is contained in:
tobtoht
2022-03-14 22:36:58 +01:00
parent 87e46fc961
commit 54140df597
13 changed files with 71 additions and 15 deletions
+4
View File
@@ -192,6 +192,10 @@ void Nodes::connectToNode(const FeatherNode &node) {
if (!node.isValid())
return;
if (config()->get(Config::offlineMode).toBool()) {
return;
}
emit updateStatus(QString("Connecting to %1").arg(node.toAddress()));
qInfo() << QString("Attempting to connect to %1 (%2)").arg(node.toAddress()).arg(node.custom ? "custom" : "ws");