chore: rename

This commit is contained in:
parhelia512 2025-10-29 06:13:40 +08:00
parent 45ce180932
commit 6a1dec8755
7 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -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);

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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);

View File

@ -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();
}, },