def on_disable_proxy(systray):
proxy_state = proxy_state_menu
if proxy_state.type & 1:
winreg.DeleteValue(SETTINGS, 'AutoConfigURL')
if proxy_state.type & 2:
winreg.SetValueEx(SETTINGS, 'ProxyEnable', 0, winreg.REG_DWORD, 0)
refresh_proxy_state()
评论列表
文章目录