fix(ui): MainWindow.__init__ 添加 config=None 参数

This commit is contained in:
2026-04-13 14:59:46 +08:00
parent 0a9a2f150f
commit e33e5942c5
2 changed files with 2 additions and 1 deletions

View File

@@ -279,8 +279,9 @@ class SettingsView(QWidget):
class MainWindow(QMainWindow):
"""Main application window."""
def __init__(self):
def __init__(self, config=None):
super().__init__()
self.config = config or {}
self.setWindowTitle("WeChat Agent")
self.setMinimumSize(1200, 800)
self.setup_ui()