]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
fix remaining small issues
authorgg <chown_tee@proton.me>
Mon, 12 Jan 2026 14:01:17 +0000 (09:01 -0500)
committergg <chown_tee@proton.me>
Mon, 12 Jan 2026 14:01:17 +0000 (09:01 -0500)
src/MainWindow.cpp
src/libwalletqt/Wallet.h
src/utils/Utils.cpp

index 9282db96ba12ef5643c617b054572d906fc1b94f..f89f889ce3399555efbb979d8d4e6864ff43239d 100644 (file)
@@ -391,7 +391,7 @@ void MainWindow::initStatusBar() {
             connect(btnBox, &QDialogButtonBox::rejected, &dialog, &QDialog::reject);
             layout->addWidget(btnBox);
 
-            // Compact vertical size, allow horizontal resize
+            // Use fixed size based on content - prevents manual resizing
             dialog.layout()->setSizeConstraint(QLayout::SetFixedSize);
 
             if (dialog.exec() == QDialog::Accepted) {
index 4b7d3d6b8e2260090e3aad178f20c4cb738b47ab..2b3453107d02c7ec0981b521a63530e20cd3b645 100644 (file)
@@ -231,7 +231,7 @@ public:
     void syncStatusUpdated(quint64 height, quint64 target);
     Q_INVOKABLE void skipToTip();
     Q_INVOKABLE void syncDateRange(const QDate &start, const QDate &end);
-    void fullSync(); // from restoreHeight, not genesis - recreate your wallet for that ;P
+    void fullSync(); // Rescans from wallet creation height, not genesis block
 
     bool importTransaction(const QString &txid);
 
index a33394857fba0bccdedeb1cabb9c5f159700942b..23ae865b46918173fcfa2f465063e465a4adac24 100644 (file)
@@ -717,8 +717,14 @@ QString formatSyncTimeEstimate(quint64 blocks) {
     quint64 minutes = blocks * 2;
     quint64 days = minutes / (60 * 24);
 
-    QString timeStr = (days > 0) ? QString("~%1 days").arg(days) : QString("~%1 hours").arg(minutes / 60);
-    if (days == 0 && minutes < 60) timeStr = "< 1 hour";
+    QString timeStr;
+    if (days > 0) {
+        timeStr = QObject::tr("~%1 days").arg(days);
+    } else if (minutes >= 60) {
+        timeStr = QObject::tr("~%1 hours").arg(minutes / 60);
+    } else {
+        timeStr = QObject::tr("< 1 hour");
+    }
     return timeStr;
 }
 
@@ -750,16 +756,16 @@ QString getPausedSyncStatus(Wallet *wallet, Nodes *nodes, QString *tooltip) {
 
     if (daemonHeight > 0) {
         if (tooltip) {
-            *tooltip = QString("Wallet Height: %1 | Network Tip: %2").arg(walletHeight).arg(daemonHeight);
+            *tooltip = QObject::tr("Wallet Height: %1 | Network Tip: %2").arg(walletHeight).arg(daemonHeight);
         }
         quint64 blocksBehind = (daemonHeight > startHeight) ? (daemonHeight - startHeight) : 0;
         if (blocksBehind == 0) {
-            return "[PAUSED] Sync paused";
+            return QObject::tr("[PAUSED] Sync paused");
         }
         return formatPausedSyncStatus(blocksBehind);
     } 
     
-    return "[PAUSED] Sync paused";
+    return QObject::tr("[PAUSED] Sync paused");
 }
 
 QString formatRestoreHeight(quint64 height) {