diff --git a/app/services/notification.py b/app/services/notification.py index 7d17545..21486d5 100644 --- a/app/services/notification.py +++ b/app/services/notification.py @@ -34,8 +34,7 @@ from email.mime.text import MIMEText from email.utils import formataddr import requests -from PySide6.QtCore import Signal -from PySide6.QtWidgets import QWidget +from PySide6.QtCore import QObject, Signal from loguru import logger from plyer import notification @@ -43,7 +42,7 @@ from app.core import Config from app.services.security import Crypto -class Notification(QWidget): +class Notification(QObject): push_info_bar = Signal(str, str, str, int) diff --git a/resources/version.json b/resources/version.json index 4fda158..fb2309d 100644 --- a/resources/version.json +++ b/resources/version.json @@ -4,6 +4,9 @@ "4.3.9.1": { "修复bug": [ "网络模块支持并发请求" + ], + "程序优化": [ + "非UI组件转为QObject类" ] } }