Fix wrongful removal of i18n option

This caused the option to be always be removed, while we only needed the info of the option to be removed

Contributes to CURA-11497
This commit is contained in:
Jelle Spijker 2024-01-11 09:00:19 +01:00
parent 69c47269a0
commit 8f29e8d77b
No known key found for this signature in database
GPG key ID: 034D1C0527888B65

View file

@ -518,7 +518,8 @@ echo "CURA_APP_NAME={{ cura_app_name }}" >> ${{ env_prefix }}GITHUB_ENV
del self.info.options.cloud_api_version
del self.info.options.display_name
del self.info.options.cura_debug_mode
self.options.rm_safe("enable_i18n")
if self.options.get_safe("enable_i18n", False):
del self.info.options.enable_i18n
# TODO: Use the hash of requirements.txt and requirements-ultimaker.txt, Because changing these will actually result in a different
# Cura. This is needed because the requirements.txt aren't managed by Conan and therefor not resolved in the package_id. This isn't