file_manager: Fix total filament change count parsing for PS/SS

Signed-off-by: Tyler Wondrasek <wondro18@hotmail.com>
This commit is contained in:
Wondro 2025-03-01 19:03:44 -06:00 committed by Eric Callahan
parent 91b6bfbd09
commit 18f3da59b0

View File

@ -505,6 +505,9 @@ class PrusaSlicer(BaseSlicer):
return regex_find_int(r"; total layers count = (%D)", self.footer_data)
def parse_filament_change_count(self) -> Optional[int]:
res = regex_find_int(r"; total toolchanges = (%D)", self.footer_data)
if res is not None:
return res
return regex_find_int(r"; total filament change = (%D)", self.footer_data)
class Slic3rPE(PrusaSlicer):