Update changes

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-02-27 20:18:28 +08:00
parent e2b0cf5132
commit 3da1fa1b4c
3 changed files with 10 additions and 2 deletions
+4
View File
@@ -145,6 +145,10 @@ class AppQHeaderView(SupportExitCleanup, SupportConnectedCallback, QHeaderView):
return
try:
# https://bugreports.qt.io/browse/QTBUG-119862
# Affected: PySide6 6.6.1+
self.setDefaultSectionSize(self.defaultSectionSize())
self.sectionSizeTable = UJSONEncoder.decode(
AppSettings.get(self.sectionSizeSettingsName)
)
+5 -1
View File
@@ -63,6 +63,11 @@ PROXY_SERVER_BYPASS = (
'172.26.*;172.27.*;172.28.*;172.29.*;172.30.*;172.31.*;192.168.*'
)
if PLATFORM == 'Windows':
if PLATFORM_RELEASE != '7':
# https://github.com/2dust/v2rayN/issues/4334
PROXY_SERVER_BYPASS += ';<local>'
CORE_CHECK_ALIVE_INTERVAL = 2000
if PLATFORM == 'Windows':
@@ -86,4 +91,3 @@ NETWORK_STATE_TEST_URL = 'http://cp.cloudflare.com'
UNICODE_LARGE_RED_CIRCLE = u'\U0001F534'
UNICODE_LARGE_GREEN_CIRCLE = u'\U0001F7E2'
UNICODE_LARGE_ORANGE_CIRCLE = u'\U0001F7E0'
+1 -1
View File
@@ -237,7 +237,7 @@ class Application(ApplicationFactory, SingletonApplication):
@staticmethod
def addEnviron():
# Xray environment variables
os.environ['XRAY_LOCATION_ASSET'] = str(DATA_DIR / 'xray')
os.environ['XRAY_LOCATION_ASSET'] = str(XRAY_ASSET_DIR)
def isSystemTrayConnected(self):
if isinstance(self.systemTray, SystemTrayIcon):