add filter
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user