From d686faa1b1bf6a65631142fc343be0e5aef32bfa Mon Sep 17 00:00:00 2001 From: arm64v8a <48624112+arm64v8a@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:24:56 +0900 Subject: [PATCH] update --- translations/fa_IR.ts | 8 ++------ translations/ru_RU.ts | 2 +- translations/zh_CN.ts | 4 ++-- ui/mainwindow.cpp | 3 +++ ui/mainwindow.ui | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/translations/fa_IR.ts b/translations/fa_IR.ts index e83b428..c31d43e 100644 --- a/translations/fa_IR.ts +++ b/translations/fa_IR.ts @@ -1302,8 +1302,8 @@ This needs to be run NekoBox with administrator privileges. لینک های انتخاب شده را کپی کنید - Enable VPN - فعال کردن vpn + Enable Tun + فعال کردن tun Clone @@ -1648,10 +1648,6 @@ Direct: %2 Request with proxy but no profile started. - - Enable VPN - فعال کردن vpn - Enable System Proxy پروکسی سیستم را فعال کنید diff --git a/translations/ru_RU.ts b/translations/ru_RU.ts index b103325..ebe303a 100644 --- a/translations/ru_RU.ts +++ b/translations/ru_RU.ts @@ -1310,7 +1310,7 @@ https://matsuridayo.github.io/n-configuration/#vpn-tun Скопировать ссылки для выбранных - Enable VPN + Enable Tun Включить TUN-режим diff --git a/translations/zh_CN.ts b/translations/zh_CN.ts index a1b8e91..8025012 100644 --- a/translations/zh_CN.ts +++ b/translations/zh_CN.ts @@ -1372,8 +1372,8 @@ End: %2 启用系统代理 - Enable VPN - 启用 VPN + Enable Tun + 启用 Tun Tun Settings changed diff --git a/ui/mainwindow.cpp b/ui/mainwindow.cpp index 914303b..c52b0b7 100644 --- a/ui/mainwindow.cpp +++ b/ui/mainwindow.cpp @@ -772,6 +772,9 @@ void MainWindow::neko_set_spmode_vpn(bool enable, bool save) { on_menu_exit_triggered(); } else { MessageBoxWarning(software_name, "Setcap for Tun mode failed.\n\n1. You may canceled the dialog.\n2. You may be using an incompatible environment like AppImage."); + if (QProcessEnvironment::systemEnvironment().contains("APPIMAGE")) { + MW_show_log("If you are using AppImage, it's impossible to start a Tun. Please use other package instead."); + } } #endif #ifdef Q_OS_WIN diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui index f0a018d..87a3138 100644 --- a/ui/mainwindow.ui +++ b/ui/mainwindow.ui @@ -834,7 +834,7 @@ true - Enable VPN + Enable Tun