Skip to content

Commit 55fb7f4

Browse files
committed
feat: 新增脚本开关、结构化icons
1 parent f719573 commit 55fb7f4

4 files changed

Lines changed: 441 additions & 160 deletions

File tree

manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def load_config(self):
5353
'proxy_address': 'http://127.0.0.1:7890',
5454
'helper_enabled': False,
5555
'helper_endpoint': '',
56-
'launch_mode': 'headless'
56+
'launch_mode': 'headless',
57+
'script_injection_enabled': False
5758
}
5859

5960
def save_config(self, config):
@@ -195,6 +196,7 @@ def start_service(self, config):
195196
try:
196197
env['PYTHONUNBUFFERED'] = '1'
197198
env['PYTHONIOENCODING'] = 'utf-8'
199+
env['ENABLE_SCRIPT_INJECTION'] = 'true' if config.get('script_injection_enabled', False) else 'false'
198200

199201
if platform.system() == 'Windows':
200202
creationflags = subprocess.CREATE_NEW_PROCESS_GROUP

0 commit comments

Comments
 (0)