fix(gui): 同时设置app和window图标确保显示

This commit is contained in:
2026-07-28 11:48:09 +08:00
parent e204ce145e
commit dea88feb7f
+4 -1
View File
@@ -1448,8 +1448,11 @@ def main() -> int:
app.setFont(QFont("Segoe UI", 10))
icon_path = program_root() / "x.png"
if icon_path.exists():
app.setWindowIcon(QIcon(str(icon_path)))
icon = QIcon(str(icon_path))
app.setWindowIcon(icon)
window = MainWindow()
if icon_path.exists():
window.setWindowIcon(QIcon(str(icon_path)))
window.show()
return app.exec()