From e7205ce0aa21d71578afc786fcdaa5793275efb8 Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Fri, 30 May 2025 21:06:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(services):=20=E9=9D=9EUI=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E8=BD=AC=E4=B8=BAQObject=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/notification.py | 5 ++--- resources/version.json | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) 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类" ] } }