fix(gui,gcode): 无数据时格式化显示0s和0.00g替代未知
format_duration/format_filament 接收 None 时返回零值字符串而非未知, GUI 初始合计标签同步更新。
This commit is contained in:
@@ -423,7 +423,7 @@ class MainWindow(QMainWindow):
|
||||
table_layout.addWidget(self.table)
|
||||
|
||||
# --- 合计统计标签 ---
|
||||
self.total_summary_label = QLabel("合计:0 板 | 时间:未知 | 耗材:未知")
|
||||
self.total_summary_label = QLabel("合计:0 板 | 时间:0s | 耗材:0.00 g")
|
||||
table_layout.addWidget(self.total_summary_label)
|
||||
file_body.addLayout(table_layout, 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user