添加数据验证逻辑,抛出自定义异常以处理验证失败情况;更新错误处理逻辑以显示详细错误信息

This commit is contained in:
2026-01-20 23:19:10 +08:00
parent 28e35ea429
commit 96350bb8e2
3 changed files with 41 additions and 8 deletions

View File

@@ -269,3 +269,13 @@ class AchievementWidget(Widget):
duration=5000,
parent=self
)
elif level == LOGLEVEL.ERROR:
InfoBar.error(
title='错误',
content=content,
orient=Qt.Horizontal,
isClosable=True,
position=InfoBarPosition.TOP_RIGHT,
duration=-1,
parent=self
)