From: gg Date: Tue, 13 Jan 2026 03:28:13 +0000 (-0500) Subject: fix bug in m_updateNetworkInfoAction; add buld num to app X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=0b9c7f061112ff83bd2bafbca087d0065549ffad;p=gamesguru%2Ffeather.git fix bug in m_updateNetworkInfoAction; add buld num to app --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 09fd8a86..1d0a960d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.16) # Configurable options option(FEATHER_VERSION_DEBUG_BUILD "Enable git describe version string" OFF) -if(FEATHER_VERSION_DEBUG_BUILD AND EXISTS "${CMAKE_SOURCE_DIR}/.git") +if(EXISTS "${CMAKE_SOURCE_DIR}/.git") find_package(Git) if(GIT_FOUND) execute_process( @@ -12,11 +12,17 @@ if(FEATHER_VERSION_DEBUG_BUILD AND EXISTS "${CMAKE_SOURCE_DIR}/.git") OUTPUT_VARIABLE GIT_DESCRIBE_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE ) - message(STATUS "Feather DEBUG BUILD version (git): ${GIT_DESCRIBE_VERSION}") - set(DETECTED_FEATHER_VERSION ${GIT_DESCRIBE_VERSION}) + if(GIT_DESCRIBE_VERSION) + message(STATUS "Feather build version (git): ${GIT_DESCRIBE_VERSION}") + add_compile_definitions(FEATHER_BUILD_TAG="${GIT_DESCRIBE_VERSION}") + endif() endif() endif() +if(FEATHER_VERSION_DEBUG_BUILD AND GIT_DESCRIBE_VERSION) + set(DETECTED_FEATHER_VERSION ${GIT_DESCRIBE_VERSION}) +endif() + if(NOT DETECTED_FEATHER_VERSION) set(DETECTED_FEATHER_VERSION "2.8.1") endif() @@ -43,6 +49,7 @@ set(COPYRIGHT_YEAR "2025") set(COPYRIGHT_HOLDERS "The Monero Project") cmake_policy(SET CMP0074 NEW) +cmake_policy(SET CMP0148 OLD) # Configurable options option(STATIC "Link libraries statically, requires static Qt" OFF) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index ade9db55..848c2cf3 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -1055,7 +1055,8 @@ 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); + bool syncPaused = conf()->get(Config::syncPaused).toBool(); + m_updateNetworkInfoAction->setEnabled(status != Wallet::ConnectionStatus_Disconnected && !syncPaused); } // Update connection info in status bar. diff --git a/src/dialog/AboutDialog.cpp b/src/dialog/AboutDialog.cpp index bf8c7cf1..079b9cd4 100644 --- a/src/dialog/AboutDialog.cpp +++ b/src/dialog/AboutDialog.cpp @@ -29,6 +29,12 @@ AboutDialog::AboutDialog(QWidget *parent) ui->ackText->setText(ack_text); ui->label_featherVersion->setText(FEATHER_VERSION); +#ifdef FEATHER_BUILD_TAG + ui->label_buildTag->setText(FEATHER_BUILD_TAG); +#else + ui->label_buildTag->hide(); + ui->label_30->hide(); +#endif ui->label_moneroVersion->setText(MONERO_VERSION); ui->label_qtVersion->setText(QT_VERSION_STR); ui->label_torVersion->setText(TOR_VERSION); diff --git a/src/dialog/AboutDialog.ui b/src/dialog/AboutDialog.ui index 4cf20a25..f8ed38d8 100644 --- a/src/dialog/AboutDialog.ui +++ b/src/dialog/AboutDialog.ui @@ -234,55 +234,69 @@ + + + <html><head/><body><p><span style=" font-weight:700;">Build:</span></p></body></html> + + + + + + + TextLabel + + + + <html><head/><body><p><span style=" font-weight:700;">Monero:</span></p></body></html> - + TextLabel - + <html><head/><body><p><span style=" font-weight:700;">Qt:</span></p></body></html> - + TextLabel - + <html><head/><body><p><span style=" font-weight:700;">SSL:</span></p></body></html> - + TextLabel - + <html><head/><body><p><span style=" font-weight:700;">Tor:</span></p></body></html> - + TextLabel diff --git a/src/main.cpp b/src/main.cpp index 20af54e6..15cd44f7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -85,7 +85,11 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) { for (int i = 1; i < argc; i++) { if (QString(argv[i]) == "--version" || QString(argv[i]) == "-v") { +#ifdef FEATHER_BUILD_TAG + qInfo() << QObject::tr("Feather Wallet") << FEATHER_VERSION << FEATHER_BUILD_TAG; +#else qInfo() << QObject::tr("Feather Wallet") << FEATHER_VERSION; +#endif return 0; } }