mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 20:50:09 +08:00
fix version display
This commit is contained in:
parent
daa6c93900
commit
46dbd66abb
@ -1,5 +1,5 @@
|
|||||||
# Release
|
# Release
|
||||||
option(NKR_VERSION "Nekoray Application Version" "$ENV{INPUT_VERSION}")
|
set(NKR_VERSION "$ENV{INPUT_VERSION}")
|
||||||
add_compile_definitions(NKR_VERSION=\"${NKR_VERSION}\")
|
add_compile_definitions(NKR_VERSION=\"${NKR_VERSION}\")
|
||||||
|
|
||||||
# Debug
|
# Debug
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
SRC_ROOT="$PWD"
|
SRC_ROOT="$PWD"
|
||||||
DEPLOYMENT="$SRC_ROOT/deployment"
|
DEPLOYMENT="$SRC_ROOT/deployment"
|
||||||
BUILD="$SRC_ROOT/build"
|
BUILD="$SRC_ROOT/build"
|
||||||
version_standalone="nekoray-"$INPUT_VERSION
|
version_standalone="nekoray-"$INPUT_VERSION
|
||||||
@ -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 << "[" + tr("System Proxy") + "]";
|
||||||
if (NekoGui::dataStore->spmode_vpn && NekoGui::dataStore->spmode_system_proxy) tt << "[Tun+" + tr("System Proxy") + "]";
|
if (NekoGui::dataStore->spmode_vpn && NekoGui::dataStore->spmode_system_proxy) tt << "[Tun+" + tr("System Proxy") + "]";
|
||||||
tt << software_name;
|
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") {
|
if (!NekoGui::dataStore->active_routing.isEmpty() && NekoGui::dataStore->active_routing != "Default") {
|
||||||
tt << "[" + NekoGui::dataStore->active_routing + "]";
|
tt << "[" + NekoGui::dataStore->active_routing + "]";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user