mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Revert changes for CURA-5479
It was decided that functionality present in existing plugins is sufficient. No need to replicate it in our own codebase and take on the burden of maintenance CURA-5479
This commit is contained in:
parent
141ad8ff1d
commit
816aaafc19
6 changed files with 24 additions and 72 deletions
|
@ -4,8 +4,6 @@
|
|||
import configparser
|
||||
from typing import Tuple, List, Dict, Set
|
||||
import io
|
||||
|
||||
from UM.Util import parseBool
|
||||
from UM.VersionUpgrade import VersionUpgrade
|
||||
|
||||
|
||||
|
@ -44,13 +42,6 @@ class VersionUpgrade462to47(VersionUpgrade):
|
|||
parser["general"]["visible_settings"] = ";".join(
|
||||
set(parser["general"]["visible_settings"].split(";")).difference(_removed_settings))
|
||||
|
||||
if "cura" in parser and "jobname_prefix" in parser["cura"]:
|
||||
if not parseBool(parser["cura"]["jobname_prefix"]):
|
||||
parser["cura"]["job_name_template"] = "{project_name}"
|
||||
del parser["cura"]["jobname_prefix"]
|
||||
# else: When the jobname_prefix preference is True or not set,
|
||||
# the default value for job_name_template ("{machine_name_short}_{project_name}") will be used
|
||||
|
||||
result = io.StringIO()
|
||||
parser.write(result)
|
||||
return [filename], [result.getvalue()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue