fix: 统一重新执行提示位置 (#87)

This commit is contained in:
chengma
2026-08-10 10:16:11 +08:00
parent 5a0a011e5b
commit 977af345b5
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -500,7 +500,7 @@ class PDDTaskPageEvent(QObject):
content=content,
isClosable=True,
duration=5000,
position=InfoBarPosition.TOP_RIGHT,
position=InfoBarPosition.TOP,
parent=self._page,
)
self._replace_rerun_feedback(bar)
+1
View File
@@ -466,6 +466,7 @@ class PDDTaskPageEventTest(unittest.TestCase):
events._show_rerun_warning("暂时不能重新执行", "测试警告")
first = events._rerun_feedback
self.assertIsNotNone(first)
self.assertEqual(first.position, InfoBarPosition.TOP)
events._show_rerun_error("重新采集失败", "测试错误")
second = events._rerun_feedback
self.assertIsNot(first, second)