fix(gui): 添加3MF失败时弹窗提示错误原因

This commit is contained in:
2026-07-30 09:32:18 +08:00
parent 7c6a9f65ef
commit 40c339dd74
+2 -1
View File
@@ -1053,7 +1053,8 @@ class MainWindow(QMainWindow):
path = Path(file_name)
try:
summary = read_3mf_summary(path)
except Exception:
except Exception as exc:
QMessageBox.warning(self, t("gui.dialog.warning.title"), t("gui.log.skipped_file", path=path.name, reason=str(exc)))
return False
row = self.table.rowCount()
self._updating_table = True