fix version display

This commit is contained in:
Nova 2025-07-13 02:12:21 +03:30
parent daa6c93900
commit 46dbd66abb
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# Release
option(NKR_VERSION "Nekoray Application Version" "$ENV{INPUT_VERSION}")
set(NKR_VERSION "$ENV{INPUT_VERSION}")
add_compile_definitions(NKR_VERSION=\"${NKR_VERSION}\")
# Debug

View File

@ -1,4 +1,4 @@
SRC_ROOT="$PWD"
DEPLOYMENT="$SRC_ROOT/deployment"
BUILD="$SRC_ROOT/build"
version_standalone="nekoray-"$INPUT_VERSION
version_standalone="nekoray-"$INPUT_VERSION

View File

@ -1176,7 +1176,7 @@ void MainWindow::refresh_status(const QString &traffic_update) {
if (!NekoGui::dataStore->spmode_vpn && NekoGui::dataStore->spmode_system_proxy) tt << "[" + tr("System Proxy") + "]";
if (NekoGui::dataStore->spmode_vpn && NekoGui::dataStore->spmode_system_proxy) tt << "[Tun+" + tr("System Proxy") + "]";
tt << software_name;
if (!isTray) tt << "(" + QString(NKR_VERSION) + ")";
if (!isTray) tt << QString(NKR_VERSION);
if (!NekoGui::dataStore->active_routing.isEmpty() && NekoGui::dataStore->active_routing != "Default") {
tt << "[" + NekoGui::dataStore->active_routing + "]";
}