mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-10 00:08:11 +03:00
Add proxy endpoint information
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -26,6 +26,7 @@ from Furious.Service.TrafficStatsManager import (
|
||||
CLEAR_TRAFFIC_USAGE_ON_RECONNECT_SETTING,
|
||||
METRICS_COLLECTION_SETTING,
|
||||
)
|
||||
from Furious.Service.EndpointInfoService import PROXY_ENDPOINT_INFO_SETTING
|
||||
|
||||
from PySide6 import QtCore
|
||||
|
||||
@@ -33,6 +34,7 @@ __all__ = [
|
||||
'APPLICATION_THEME_SETTING',
|
||||
'LOG_AUTO_SCROLL_DOWN_SETTING',
|
||||
'LOG_AUTO_CLEAR_SETTING',
|
||||
'PROXY_ENDPOINT_INFO_SETTING',
|
||||
'SettingsController',
|
||||
]
|
||||
|
||||
@@ -292,6 +294,16 @@ class SettingsController:
|
||||
except (AttributeError, RuntimeError):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def setProxyEndpointInfoEnabled(cls, enabled: bool):
|
||||
"""Persist and immediately apply privacy-sensitive endpoint inspection."""
|
||||
cls._setBinary(PROXY_ENDPOINT_INFO_SETTING, enabled)
|
||||
|
||||
try:
|
||||
AppEndpointInfoService().setEnabled(enabled)
|
||||
except (AttributeError, RuntimeError):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def setEditorWhitespaceVisible(cls, enabled: bool):
|
||||
"""Apply and persist editor whitespace visibility."""
|
||||
|
||||
Reference in New Issue
Block a user