minor refactor

This commit is contained in:
arm64v8a
2023-05-22 11:07:14 +09:00
parent 1b050dd3fb
commit c5122b77e4
98 changed files with 1173 additions and 1142 deletions

View File

@@ -16,9 +16,10 @@
#include <QStandardPaths>
#include <QProcess>
#include "3rdparty/fix_old_qt.h"
#include "3rdparty/qv2ray/wrapper.hpp"
#include "fmt/Preset.hpp"
#include "main/NekoRay.hpp"
#include "main/NekoGui.hpp"
#define QV_MODULE_NAME "SystemProxy"
@@ -253,7 +254,7 @@ namespace Qv2ray::components::proxy {
#endif
#ifdef Q_OS_WIN
QString str = NekoRay::dataStore->system_proxy_format;
QString str = NekoGui::dataStore->system_proxy_format;
if (str.isEmpty()) str = Preset::Windows::system_proxy_format[0];
str = str.replace("{ip}", address)
.replace("{http_port}", Int2String(httpPort))