mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Revert ignoring network information in VersionUpgrader
As this will also remove them from machines that go through the VersionUpgrader.
This commit is contained in:
parent
7bf1af99a5
commit
4b72db90ee
1 changed files with 0 additions and 16 deletions
|
@ -25,17 +25,6 @@ _removed_settings = {
|
||||||
"support_tree_enable"
|
"support_tree_enable"
|
||||||
} # type: Set[str]
|
} # type: Set[str]
|
||||||
|
|
||||||
_removed_machine_network_metadata = {
|
|
||||||
"um_cloud_cluster_id",
|
|
||||||
"um_network_key",
|
|
||||||
"um_linked_to_account",
|
|
||||||
"host_guid",
|
|
||||||
"removal_warning",
|
|
||||||
"group_name",
|
|
||||||
"group_size",
|
|
||||||
"connection_type"
|
|
||||||
} # type: Set[str]
|
|
||||||
|
|
||||||
|
|
||||||
class VersionUpgrade462to47(VersionUpgrade):
|
class VersionUpgrade462to47(VersionUpgrade):
|
||||||
def upgradePreferences(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
def upgradePreferences(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||||
|
@ -148,11 +137,6 @@ class VersionUpgrade462to47(VersionUpgrade):
|
||||||
parser["metadata"] = {}
|
parser["metadata"] = {}
|
||||||
parser["metadata"]["setting_version"] = "15"
|
parser["metadata"]["setting_version"] = "15"
|
||||||
|
|
||||||
# Remove machine network information from project file
|
|
||||||
for network_info in _removed_machine_network_metadata:
|
|
||||||
if network_info in parser["metadata"]:
|
|
||||||
del parser["metadata"][network_info]
|
|
||||||
|
|
||||||
# Update Pause at Height script parameters if present.
|
# Update Pause at Height script parameters if present.
|
||||||
if "post_processing_scripts" in parser["metadata"]:
|
if "post_processing_scripts" in parser["metadata"]:
|
||||||
new_scripts_entries = []
|
new_scripts_entries = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue