From: gg Date: Tue, 13 Jan 2026 21:45:09 +0000 (-0500) Subject: fix: m_updateNetworkInfoAction was active when sync Disabled X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=8d89fd65251886e2e2eb7916a07df0b6a1cf2543;p=gamesguru%2Ffeather.git fix: m_updateNetworkInfoAction was active when sync Disabled --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 00189f58..5254bb08 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: ci/gh-actions/build -on: [push, pull_request] +on: [pull_request] jobs: build-ubuntu-without-scanner: diff --git a/.github/workflows/guix.yml b/.github/workflows/guix.yml index e36b0c8f..abd058f0 100644 --- a/.github/workflows/guix.yml +++ b/.github/workflows/guix.yml @@ -1,6 +1,9 @@ name: ci/gh-actions/guix -# on: [push, pull_request] +on: + push: + tags: + - "guix-2.8.1-*" jobs: cache-sources: diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 4059879f..ad90ce61 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -9,7 +9,6 @@ jobs: build: name: macOS (brew) runs-on: macos-latest - steps: env: CCACHE_DIR: /Users/runner/Library/Caches/ccache HOMEBREW_NO_AUTO_UPDATE: 1 diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index 020f5ed7..ae9a9191 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -9,7 +9,6 @@ jobs: build: name: Windows (MSYS2) runs-on: windows-latest - steps: env: CCACHE_DIR: ~/.ccache diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index aae0d535..bb258342 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -920,7 +920,7 @@ void MainWindow::onBalanceUpdated(quint64 balance, quint64 spendable) { QString fiatCurrency = conf()->get(Config::preferredFiatCurrency).toString(); double balanceFiatAmount = appData()->prices.convert("XMR", fiatCurrency, balance / constants::cdiv); bool isCacheValid = appData()->prices.lastUpdateTime.isValid(); - bool isCacheFresh = isCacheValid && appData()->prices.lastUpdateTime.secsTo(QDateTime::currentDateTime()) < 3; // TODO: 3600 + bool isCacheFresh = isCacheValid && appData()->prices.lastUpdateTime.secsTo(QDateTime::currentDateTime()) < 3600; if (balance > 0 && (balanceFiatAmount == 0.0 || !isCacheValid)) { if (conf()->get(Config::offlineMode).toBool() || m_wallet->connectionStatus() == Wallet::ConnectionStatus_Disconnected) { @@ -936,7 +936,7 @@ void MainWindow::onBalanceUpdated(quint64 balance, quint64 spendable) { } } - QString toolTip = "Click for details"; + QString toolTip = "Right-click for details"; if (appData()->prices.lastUpdateTime.isValid()) { toolTip += QString("\nLast updated: %1").arg(Utils::timeAgo(appData()->prices.lastUpdateTime)); } @@ -1107,7 +1107,7 @@ void MainWindow::onConnectionStatusChanged(int status) qDebug() << "Wallet connection status changed " << Utils::QtEnumToString(static_cast(status)); if (m_updateNetworkInfoAction) { // Maybe not initialized on first function call - m_updateNetworkInfoAction->setEnabled(status != Wallet::ConnectionStatus_Disconnected); + m_updateNetworkInfoAction->setEnabled(status != Wallet::ConnectionStatus_Disconnected && !conf()->get(Config::syncPaused).toBool()); } // Update connection info in status bar.