mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 05:39:02 +08:00
Merge pull request #6751 from Ultimaker/CURA-6994
CURA-6994/Prevent deleting comments from Start/End G-codes
This commit is contained in:
commit
19da7b932a
@ -239,7 +239,7 @@ class VersionUpgrade41to42(VersionUpgrade):
|
|||||||
#
|
#
|
||||||
# This renames the renamed settings in the containers.
|
# This renames the renamed settings in the containers.
|
||||||
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||||
parser = configparser.ConfigParser(interpolation = None)
|
parser = configparser.ConfigParser(interpolation = None, comment_prefixes=())
|
||||||
parser.read_string(serialized)
|
parser.read_string(serialized)
|
||||||
|
|
||||||
# Update version number.
|
# Update version number.
|
||||||
|
@ -104,7 +104,7 @@ class VersionUpgrade42to43(VersionUpgrade):
|
|||||||
#
|
#
|
||||||
# This renames the renamed settings in the containers.
|
# This renames the renamed settings in the containers.
|
||||||
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||||
parser = configparser.ConfigParser(interpolation = None)
|
parser = configparser.ConfigParser(interpolation = None, comment_prefixes=())
|
||||||
parser.read_string(serialized)
|
parser.read_string(serialized)
|
||||||
|
|
||||||
# Update version number.
|
# Update version number.
|
||||||
|
@ -52,7 +52,7 @@ class VersionUpgrade43to44(VersionUpgrade):
|
|||||||
#
|
#
|
||||||
# This renames the renamed settings in the containers.
|
# This renames the renamed settings in the containers.
|
||||||
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||||
parser = configparser.ConfigParser(interpolation = None)
|
parser = configparser.ConfigParser(interpolation = None, comment_prefixes=())
|
||||||
parser.read_string(serialized)
|
parser.read_string(serialized)
|
||||||
|
|
||||||
# Update version number.
|
# Update version number.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user