From 363c9e023d97d0913051d70d4b9c46862dd6620a Mon Sep 17 00:00:00 2001 From: liyp Date: Sun, 7 Jan 2024 17:28:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=97=B4=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main/main.py b/main/main.py index b228c53..a637bb8 100644 --- a/main/main.py +++ b/main/main.py @@ -3,7 +3,7 @@ import platform import requests from PyQt5.QtWidgets import QApplication, QMainWindow, QSystemTrayIcon, QMenu, QAction,QActionGroup from PyQt5.QtGui import QIcon -from PyQt5.QtCore import QTimer,pyqtSignal,QThread +from PyQt5.QtCore import pyqtSignal,QThread import json import aiohttp import asyncio @@ -86,8 +86,12 @@ class TrayIconExample(QMainWindow): context_menu.addMenu(proxy_mode) context_menu.addAction(self.copy_env) context_menu.addMenu(self.more_menu) + context_menu.addSeparator() context_menu.addAction(self.inuse_memory) - context_menu.addActions([self.upload_speed,self.download_speed,exit_action]) + context_menu.addActions([self.upload_speed,self.download_speed]) + context_menu.addSeparator() + context_menu.addAction(exit_action) + proxy_mode.addActions([self.direct_mode,self.rule_mode,self.global_mode]) self.copy_env.triggered.connect(self.copy_env_var)