Skip to content

Commit

Permalink
remove log high light
Browse files Browse the repository at this point in the history
  • Loading branch information
arm64v8a committed Jul 13, 2024
1 parent 79838d8 commit 7aa863b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 232 deletions.
132 changes: 0 additions & 132 deletions 3rdparty/qv2ray/v2/ui/LogHighlighter.cpp

This file was deleted.

92 changes: 0 additions & 92 deletions 3rdparty/qv2ray/v2/ui/LogHighlighter.hpp

This file was deleted.

1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ set(PROJECT_SOURCES
3rdparty/qrcodegen.cpp
3rdparty/QtExtKeySequenceEdit.cpp

3rdparty/qv2ray/v2/ui/LogHighlighter.cpp
3rdparty/qv2ray/v2/ui/QvAutoCompleteTextEdit.cpp
3rdparty/qv2ray/v2/components/proxy/QvProxyConfigurator.cpp
3rdparty/qv2ray/v2/ui/widgets/common/QJsonModel.cpp
Expand Down
6 changes: 3 additions & 3 deletions db/ConfigBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace NekoGui {
}

QString genTunName() {
auto tun_name = "nekobox-tun";
auto tun_name = "neko-tun";
#ifdef Q_OS_MACOS
tun_name = "utun9";
#endif
Expand Down Expand Up @@ -726,8 +726,8 @@ namespace NekoGui {

QString WriteVPNSingBoxConfig() {
// tun user rule
auto match_out = dataStore->vpn_rule_white ? "nekobox-socks" : "direct";
auto no_match_out = dataStore->vpn_rule_white ? "direct" : "nekobox-socks";
auto match_out = dataStore->vpn_rule_white ? "neko-socks" : "direct";
auto no_match_out = dataStore->vpn_rule_white ? "direct" : "neko-socks";

QString process_name_rule = dataStore->vpn_rule_process.trimmed();
if (!process_name_rule.isEmpty()) {
Expand Down
4 changes: 2 additions & 2 deletions res/vpn/sing-box-vpn.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
"tag": "dns-remote",
"address": "8.8.8.8",
"detour": "nekoray-socks"
"detour": "neko-socks"
},
{
"tag": "dns-direct",
Expand Down Expand Up @@ -75,7 +75,7 @@
"outbounds": [
{
"type": "socks",
"tag": "nekoray-socks",
"tag": "neko-socks",
"udp_fragment": true,
//%SOCKS_USER_PASS%
"server": "127.0.0.1",
Expand Down
2 changes: 0 additions & 2 deletions ui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "3rdparty/qrcodegen.hpp"
#include "3rdparty/VT100Parser.hpp"
#include "3rdparty/qv2ray/v2/components/proxy/QvProxyConfigurator.hpp"
#include "3rdparty/qv2ray/v2/ui/LogHighlighter.hpp"

#ifndef NKR_NO_ZXING
#include "3rdparty/ZxingQtReader.hpp"
Expand Down Expand Up @@ -107,7 +106,6 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi

// Setup log UI
ui->splitter->restoreState(DecodeB64IfValid(NekoGui::dataStore->splitter_state));
new SyntaxHighlighter(false, qvLogDocument);
qvLogDocument->setUndoRedoEnabled(false);
ui->masterLogBrowser->setUndoRedoEnabled(false);
ui->masterLogBrowser->setDocument(qvLogDocument);
Expand Down

0 comments on commit 7aa863b

Please sign in to comment.