Feature flag to enable legacy plugin assets

Work around issues like #2246 until the plugins that are affected are
fixed.

To be removed in 1.3.8.

See also #2200
This commit is contained in:
Gina Häußge committed 2017-11-29 15:55:09 +01:00
1 parent aa65671ac7
commit 5c20e264e2
5 files changed
+29 -4

No files matched your search

+3 -1
View File
@@ -130,7 +130,8 @@ def getSettings():
"firmwareDetection": s.getBoolean(["feature", "firmwareDetection"]),
"printCancelConfirmation": s.getBoolean(["feature", "printCancelConfirmation"]),
"blockWhileDwelling": s.getBoolean(["feature", "blockWhileDwelling"]),
"g90InfluencesExtruder": s.getBoolean(["feature", "g90InfluencesExtruder"])
"g90InfluencesExtruder": s.getBoolean(["feature", "g90InfluencesExtruder"]),
"legacyPluginAssets": s.getBoolean(["feature", "legacyPluginAssets"])
},
"serial": {
"port": connectionOptions["portPreference"],
@@ -358,6 +359,7 @@ def _saveSettings(data):
if "printCancelConfirmation" in data["feature"]: s.setBoolean(["feature", "printCancelConfirmation"], data["feature"]["printCancelConfirmation"])
if "blockWhileDwelling" in data["feature"]: s.setBoolean(["feature", "blockWhileDwelling"], data["feature"]["blockWhileDwelling"])
if "g90InfluencesExtruder" in data["feature"]: s.setBoolean(["feature", "g90InfluencesExtruder"], data["feature"]["g90InfluencesExtruder"])
if "legacyPluginAssets" in data["feature"]: s.setBoolean(["feature", "legacyPluginAssets"], data["feature"]["legacyPluginAssets"])
if "serial" in data.keys():
if "autoconnect" in data["serial"]: s.setBoolean(["serial", "autoconnect"], data["serial"]["autoconnect"])