Reset send slice info and show privacy dialog

CURA-5095

Because the data Cura collects has been changed.
This commit is contained in:
Lipu Fei 2018-09-20 12:55:29 +02:00
parent f912630d17
commit 5a235a59dd

View File

@ -92,6 +92,11 @@ class VersionUpgrade34to35(VersionUpgrade):
parser["metadata"] = {}
parser["metadata"]["setting_version"] = "5"
# Need to show the data collection agreement again because the data Cura collects has been changed.
if parser.has_option("info", "asked_send_slice_info"):
parser.remove_option("info", "asked_send_slice_info")
parser.remove_option("info", "send_slice_info")
result = io.StringIO()
parser.write(result)
return [filename], [result.getvalue()]