diff --git a/changelog.txt b/changelog.txt index 6040dbc..cfac42b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +[3.2.1] +- Fixed a bug, that sometimes caused display errors for filament cost + [3.2.0] - Added option to add extended Klipper thumbnails - Minor other fixes diff --git a/package_plugin/package.json b/package_plugin/package.json index 4a35e0a..e7f6ebd 100644 --- a/package_plugin/package.json +++ b/package_plugin/package.json @@ -9,7 +9,7 @@ "display_name": "Elegoo Neptune Thumbnails", "package_id": "ElegooNeptune3Thumbnails", "package_type": "plugin", - "package_version": "3.2.0", + "package_version": "3.2.1", "sdk_version": 8, "sdk_version_semver": "8.0.0", "website": "https://github.com/Molodos/ElegooNeptuneThumbnails" diff --git a/plugin.json b/plugin.json index 9c3db8a..4c1af82 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "name": "Elegoo Neptune Thumbnails", "id": "neptune_thumbnails", "author": "Molodos", - "version": "3.2.0", + "version": "3.2.1", "description": "Adds Elegoo Neptune printer thumbnail to G-code. Contains options to display parameters like estimated print time or model height on the thumbnail", "supported_sdk_versions": ["8.0.0", "8.1.0", "8.2.0", "8.3.0", "8.4.0"], "api": 8 diff --git a/tools/thumbnail_generator.py b/tools/thumbnail_generator.py index 231ca83..b2ab4f4 100644 --- a/tools/thumbnail_generator.py +++ b/tools/thumbnail_generator.py @@ -183,7 +183,7 @@ def _generate_option_lines(cls, slice_data: SliceData) -> list[str]: lines.append(f"⭱ {round(slice_data.model_height, 2)}mm") elif option == "filament_cost_estimate": currency: str = Application.getInstance().getPreferences().getValue(cls.CURRENCY_PREFERENCE) - lines.append(f"⛁ {round(slice_data.filament_cost, 2)}{currency}") + lines.append(f"⛁ {round(slice_data.filament_cost, 2):.02f}{currency}") elif option == "filament_meters_estimate": lines.append(f"⬌ {round(slice_data.filament_meters, 2):.02f}m") return lines