]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
fixes
authorgg <chown_tee@proton.me>
Wed, 14 Jan 2026 18:57:28 +0000 (13:57 -0500)
committergg <chown_tee@proton.me>
Wed, 14 Jan 2026 18:57:28 +0000 (13:57 -0500)
.github/workflows/build.yml
src/MainWindow.cpp
src/dialog/SyncRangeDialog.cpp

index 07dc6c0740e063a6380899b52b07bc5a60d31264..a7f01e9e901614904eae81067748415039f5a7b0 100644 (file)
@@ -1,7 +1,8 @@
 name: ci/gh-actions/build
 
 on:
-  push: [master, main, dev]
+  push:
+    branches: [master, main, dev]
   pull_request:
 
 jobs:
index e4d6d9435aa3470c6fc0e5bedf89a6daecbe208a..b3daf9af7a9f073e8b04e219f99f0ec531e8d72e 100644 (file)
@@ -615,7 +615,7 @@ void MainWindow::initOffline() {
         if (!m_wallet) return;
         qDebug() << "Scanning wallet...";
         this->setStatusText(tr("Scanning..."));
-        QApplication::processEvents();  // Ensure status text is visible immediately
+        QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
         m_wallet->updateNetworkStatus();
     });
 
@@ -825,7 +825,6 @@ void MainWindow::onBalanceUpdated(quint64 balance, quint64 spendable) {
 
 
     QString finalText = "Balance: " + valueStr + suffixStr;
-    qDebug() << "Setting balance label text:" << finalText;
 
     m_statusLabelBalance->setText(finalText);
     m_statusLabelBalance->setProperty("copyableValue", valueStr);
@@ -836,7 +835,7 @@ void MainWindow::updateStatusToolTip() {
     if (appData()->prices.lastUpdateTime.isValid()) {
         toolTip += QString("\nPrice updated: %1").arg(Utils::timeAgo(appData()->prices.lastUpdateTime));
     }
-    if (m_wallet->lastSyncTime().isValid()) {
+    if (m_wallet && m_wallet->lastSyncTime().isValid()) {
         toolTip += QString("\nWallet synced: %1").arg(Utils::timeAgo(m_wallet->lastSyncTime()));
     }
     m_statusLabelBalance->setToolTip(toolTip);
index 15e2971de38dfe7b3fc39d394900455a5480c6a7..73966fa4316f48ebea02986b2ae65585283f1a05 100644 (file)
@@ -120,6 +120,12 @@ void SyncRangeDialog::updateInfo() {
     NetworkType::Type nettype = m_wallet->nettype();
     QString filename = Utils::getRestoreHeightFilename(nettype);
     std::unique_ptr<RestoreHeightLookup> lookup(RestoreHeightLookup::fromFile(filename, nettype));
+    if (!lookup || lookup->data.isEmpty()) {
+        m_infoLabel->setText(tr("Unable to estimate - restore height data unavailable"));
+        m_estimatedBlocks = 0;
+        m_estimatedSize = 0;
+        return;
+    }
 
     QDate start = m_fromDateEdit->date();
     QDate end = m_toDateEdit->date();