def on_quit(self, widget, data=None): if self.get_proxy_state() != "unknown": win32_proxy_manager.disable_proxy() module_init.stop_all() nid = win32_adapter.NotifyData(self.systray._hwnd, 0) win32_adapter.Shell_NotifyIcon(2, ctypes.byref(nid)) os._exit(0)
def on_quit(self, widget, data=None): proxy_setting = config.get(["modules", "launcher", "proxy"], "disable") if proxy_setting != "disable": win32_proxy_manager.disable_proxy() module_init.stop_all() nid = win32_adapter.NotifyData(self.systray._hwnd, 0) win32_adapter.Shell_NotifyIcon(2, ctypes.byref(nid)) os._exit(0)
def on_quit(self, widget, data=None): # proxy_setting = config.get(["modules", "launcher", "proxy"], "disable") # if proxy_setting != "disable": # win32_proxy_manager.disable_proxy() # module_init.stop_all() cmd = 'taskkill /F /IM brook_windows_386.exe' os.system(cmd) nid = win32_adapter.NotifyData(self.systray._hwnd, 0) win32_adapter.Shell_NotifyIcon(2, ctypes.byref(nid)) os._exit(0)