# 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(
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()
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)
qDebug() << "Wallet connection status changed " << Utils::QtEnumToString(static_cast<Wallet::ConnectionStatus>(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.
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);
</widget>
</item>
<item row="1" column="0">
+ <widget class="QLabel" name="label_30">
+ <property name="text">
+ <string><html><head/><body><p><span style=" font-weight:700;">Build:</span></p></body></html></string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLabel" name="label_buildTag">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0">
<widget class="QLabel" name="label_20">
<property name="text">
<string><html><head/><body><p><span style=" font-weight:700;">Monero:</span></p></body></html></string>
</property>
</widget>
</item>
- <item row="1" column="1">
+ <item row="2" column="1">
<widget class="QLabel" name="label_moneroVersion">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
- <item row="2" column="0">
+ <item row="3" column="0">
<widget class="QLabel" name="label_22">
<property name="text">
<string><html><head/><body><p><span style=" font-weight:700;">Qt:</span></p></body></html></string>
</property>
</widget>
</item>
- <item row="2" column="1">
+ <item row="3" column="1">
<widget class="QLabel" name="label_qtVersion">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
- <item row="4" column="0">
+ <item row="5" column="0">
<widget class="QLabel" name="label_24">
<property name="text">
<string><html><head/><body><p><span style=" font-weight:700;">SSL:</span></p></body></html></string>
</property>
</widget>
</item>
- <item row="4" column="1">
+ <item row="5" column="1">
<widget class="QLabel" name="label_sslVersion">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
- <item row="3" column="0">
+ <item row="4" column="0">
<widget class="QLabel" name="label_26">
<property name="text">
<string><html><head/><body><p><span style=" font-weight:700;">Tor:</span></p></body></html></string>
</property>
</widget>
</item>
- <item row="3" column="1">
+ <item row="4" column="1">
<widget class="QLabel" name="label_torVersion">
<property name="text">
<string>TextLabel</string>