mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
chore: rename
This commit is contained in:
parent
45ce180932
commit
6a1dec8755
@ -116,7 +116,7 @@ set(PROJECT_SOURCES
|
|||||||
src/ui/setting/ThemeManager.cpp
|
src/ui/setting/ThemeManager.cpp
|
||||||
src/ui/setting/Icon.cpp
|
src/ui/setting/Icon.cpp
|
||||||
|
|
||||||
src/ui/mainwindow_grpc.cpp
|
src/ui/mainwindow_rpc.cpp
|
||||||
src/ui/mainwindow.cpp
|
src/ui/mainwindow.cpp
|
||||||
include/ui/mainwindow.h
|
include/ui/mainwindow.h
|
||||||
include/ui/mainwindow.ui
|
include/ui/mainwindow.ui
|
||||||
|
|||||||
@ -254,9 +254,9 @@ private:
|
|||||||
|
|
||||||
void loadShortcuts();
|
void loadShortcuts();
|
||||||
|
|
||||||
// grpc
|
// rpc
|
||||||
|
|
||||||
static void setup_grpc();
|
static void setup_rpc();
|
||||||
|
|
||||||
void urltest_current_group(const QList<std::shared_ptr<Configs::ProxyEntity>>& profiles);
|
void urltest_current_group(const QList<std::shared_ptr<Configs::ProxyEntity>>& profiles);
|
||||||
|
|
||||||
|
|||||||
@ -1991,8 +1991,8 @@ https://matsuridayo.github.io/n-configuration/#vpn-tun</translation>
|
|||||||
<translation>نمایه دیگری در حال توقف است...</translation>
|
<translation>نمایه دیگری در حال توقف است...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Try to start the config, but the core has not listened to the grpc port, so restart it...</source>
|
<source>Try to start the config, but the core has not listened to the RPC port, so restart it...</source>
|
||||||
<translation>تلاش برای شروع پیکربندی، اما هسته به پورت grpc گوش نداده است، بنابراین آن را دوباره راهاندازی کنید...</translation>
|
<translation>تلاش برای شروع پیکربندی، اما هسته به پورت RPC گوش نداده است، بنابراین آن را دوباره راهاندازی کنید...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Stop return error</source>
|
<source>Stop return error</source>
|
||||||
|
|||||||
@ -1993,8 +1993,8 @@ https://matsuridayo.github.io/n-configuration/#vpn-tun</translation>
|
|||||||
<translation>Другой профиль останавливается...</translation>
|
<translation>Другой профиль останавливается...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Try to start the config, but the core has not listened to the grpc port, so restart it...</source>
|
<source>Try to start the config, but the core has not listened to the RPC port, so restart it...</source>
|
||||||
<translation>Попытка запустить конфигурацию — ядро не прослушивает порт gRPC, поэтому перезапустите его...</translation>
|
<translation>Попытка запустить конфигурацию — ядро не прослушивает порт RPC, поэтому перезапустите его...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Stop return error</source>
|
<source>Stop return error</source>
|
||||||
|
|||||||
@ -1991,8 +1991,8 @@ https://matsuridayo.github.io/n-configuration/#vpn-tun</translation>
|
|||||||
<translation>另一个配置档正在停止...</translation>
|
<translation>另一个配置档正在停止...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Try to start the config, but the core has not listened to the grpc port, so restart it...</source>
|
<source>Try to start the config, but the core has not listened to the RPC port, so restart it...</source>
|
||||||
<translation>尝试启动该配置,但核心尚未监听到 grpc 端口,因此请重启它...</translation>
|
<translation>尝试启动该配置,但核心尚未监听到 RPC 端口,因此请重启它...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Stop return error</source>
|
<source>Stop return error</source>
|
||||||
|
|||||||
@ -164,7 +164,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
|||||||
core_process->start_profile_when_core_is_up = Configs::dataStore->remember_id;
|
core_process->start_profile_when_core_is_up = Configs::dataStore->remember_id;
|
||||||
}
|
}
|
||||||
// Setup
|
// Setup
|
||||||
setup_grpc();
|
setup_rpc();
|
||||||
core_process->Start();
|
core_process->Start();
|
||||||
},
|
},
|
||||||
DS_cores);
|
DS_cores);
|
||||||
|
|||||||
@ -12,11 +12,11 @@
|
|||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
// grpc
|
// rpc
|
||||||
|
|
||||||
using namespace API;
|
using namespace API;
|
||||||
|
|
||||||
void MainWindow::setup_grpc() {
|
void MainWindow::setup_rpc() {
|
||||||
// Setup Connection
|
// Setup Connection
|
||||||
defaultClient = new Client(
|
defaultClient = new Client(
|
||||||
[=](const QString &errStr) {
|
[=](const QString &errStr) {
|
||||||
@ -552,7 +552,7 @@ void MainWindow::profile_start(int _id) {
|
|||||||
if (!Configs::dataStore->core_running) {
|
if (!Configs::dataStore->core_running) {
|
||||||
runOnThread(
|
runOnThread(
|
||||||
[=, this] {
|
[=, this] {
|
||||||
MW_show_log(tr("Try to start the config, but the core has not listened to the grpc port, so restart it..."));
|
MW_show_log(tr("Try to start the config, but the core has not listened to the RPC port, so restart it..."));
|
||||||
core_process->start_profile_when_core_is_up = ent->id;
|
core_process->start_profile_when_core_is_up = ent->id;
|
||||||
core_process->Restart();
|
core_process->Restart();
|
||||||
},
|
},
|
||||||
Loading…
Reference in New Issue
Block a user