From: gg Date: Mon, 12 Jan 2026 14:01:17 +0000 (-0500) Subject: fix remaining small issues X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=e408843c30f6c0a484ff77c92d37d15b4c072542;p=gamesguru%2Ffeather.git fix remaining small issues --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 9282db96..f89f889c 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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) { diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index 4b7d3d6b..2b345310 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -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); diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index a3339485..23ae865b 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -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) {