fix 多次打开日志时 baseinfo 仍存有上一份日志的问题

This commit is contained in:
leimingsheng 2025-08-25 20:02:25 +08:00
parent d887cbf78e
commit cbdf0cabf4

@ -98,6 +98,8 @@ class FileProcessor:
def _update_view_after_parse(self): def _update_view_after_parse(self):
if self.parse_status.baseinfo_status: if self.parse_status.baseinfo_status:
baseinfo_str = service.get_baseinfo_str() baseinfo_str = service.get_baseinfo_str()
# fix 多次打开日志时 baseinfo 仍存有上一份日志的问题
self.main_window.textBrowser_info.clear()
self.main_window.textBrowser_info.insertPlainText(baseinfo_str) self.main_window.textBrowser_info.insertPlainText(baseinfo_str)
if self.parse_status.sensorhistory_status: if self.parse_status.sensorhistory_status: