From 459c92a3c6ed1688e1d4722b1b05ff13bd2916e3 Mon Sep 17 00:00:00 2001 From: gg Date: Wed, 14 Jan 2026 09:41:46 -0500 Subject: [PATCH] idk wip status sync ui stuff --- src/main.cpp | 6 +++++- src/utils/Utils.cpp | 2 +- src/utils/nodes.cpp | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 05b1bfd9..3e0afd32 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -184,7 +184,11 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) { } if (parser.isSet("quiet") || conf()->get(Config::disableLogging).toBool()) { - qWarning() << "Logging is disabled"; + if (conf()->get(Config::disableLogging).toBool()) { + qWarning() << "Logging is disabled via configuration"; + } else { + qWarning() << "Logging is disabled via --quiet flag"; + } WalletManager::instance()->setLogLevel(-1); } else if (logLevel >= 0 && logLevel <= Monero::WalletManagerFactory::LogLevel_Max) { diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index 12f05c5a..556e6cb0 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -559,7 +559,7 @@ QTextCharFormat addressTextFormat(const SubaddressIndex &index, quint64 amount) } void applicationLogHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) { - if (conf()->get(Config::disableLoggingStdout).toBool()) + if (conf()->get(Config::disableLoggingStdout).toBool() || conf()->get(Config::disableLogging).toBool()) return; int level = conf()->get(Config::logLevel).toInt(); diff --git a/src/utils/nodes.cpp b/src/utils/nodes.cpp index beedb42a..396890dd 100644 --- a/src/utils/nodes.cpp +++ b/src/utils/nodes.cpp @@ -285,6 +285,10 @@ void Nodes::autoConnect(bool forceReconnect) { } Wallet::ConnectionStatus status = m_wallet->connectionStatus(); + if (status == Wallet::ConnectionStatus_Connecting && !forceReconnect) { + return; + } + bool wsMode = (this->source() == NodeSource::websocket); if (wsMode && !m_wsNodesReceived && websocketNodes().count() == 0) { -- 2.52.0