add filter

This commit is contained in:
Julian Freeman
2025-10-18 22:40:07 -04:00
parent 9c33b924d3
commit 516d9e4df3
2 changed files with 53 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
from PySide6.QtWidgets import QApplication
from PySide6.QtCore import Qt, QThread, QModelIndex
from PySide6.QtGui import QIcon
from qfluentwidgets import MSFluentWindow, setTheme, Theme, InfoBar, FluentIcon as Fi
from qfluentwidgets import MSFluentWindow, setTheme, Theme, InfoBar, FluentIcon as Fi, InfoBarPosition
from common.utils import show_quick_tip, accept_warning
from common.api_worker import ApiWorker
@@ -59,7 +59,8 @@ class MainWindow(MSFluentWindow):
def handle_operation_finished(self, result: dict):
"""添加/更新/删除成功后的通用处理器"""
InfoBar.success("", "操作已成功完成。", duration=2000, parent=self.window())
InfoBar.success("", "操作已成功完成。", duration=2000,
position=InfoBarPosition.BOTTOM_RIGHT, parent=self.window())
self.worker.do_query_all() # 重新加载数据
def handle_error(self, error_message: str):