From c88551fa0dec37e004e8a5930f7199bc49a02c50 Mon Sep 17 00:00:00 2001 From: "Dr. Incognito" <17879520+Dr-Incognito@users.noreply.github.com> Date: Thu, 9 Apr 2020 09:16:15 +0800 Subject: [PATCH] Fix some bugs. --- src/appproxy.cpp | 1 - src/ui/main.qml | 2 +- src/utility.cpp | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/appproxy.cpp b/src/appproxy.cpp index 83d3793..6a02711 100644 --- a/src/appproxy.cpp +++ b/src/appproxy.cpp @@ -307,7 +307,6 @@ void AppProxy::clearLogs() { void AppProxy::getProxySettings() { bool isV2RayRunning = v2ray.isRunning(); QJsonObject appConfig = configurator.getAppConfig(); - bool enableSysProxy = appConfig["enableSysProxy"].toBool(); QString systemProxy = NetworkProxyHelper::getSystemProxy().toString(); QJsonArray connectedServers; for (QString cs : configurator.getConnectedServerNames()) { diff --git a/src/ui/main.qml b/src/ui/main.qml index 80be38e..69dedfc 100644 --- a/src/ui/main.qml +++ b/src/ui/main.qml @@ -480,7 +480,7 @@ ApplicationWindow { onAppConfigReady: function(config) { config = JSON.parse(config) if (appWindow.firstRun && config["hideWindow"]) { - appWindow.hide() + appWindow.close() appWindow.firstRun = false } if (config["enableSysProxy"]) { diff --git a/src/utility.cpp b/src/utility.cpp index 55e9ca8..8a2f21a 100644 --- a/src/utility.cpp +++ b/src/utility.cpp @@ -72,7 +72,7 @@ bool Utility::isIpAddrValid(const QString& ipAddr) { } bool Utility::isIpAddrListValid(const QString& ipAddrList) { - QStringList ips = ipAddrList.split(","); + QStringList ips = ipAddrList.split(";"); for (QString ip : ips) { if (!Utility::isIpAddrValid(ip.trimmed())) { return false;