Don't show slice info message if the preference is set to not send it

If the preference was set to not send it but the user never clicked on the message, don't show the message.

Fixes #2840.
This commit is contained in:
Ghostkeeper 2017-12-05 13:29:12 +01:00
parent 0ac7b77572
commit 13c7099e2f
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A

View File

@ -39,7 +39,7 @@ class SliceInfo(Extension):
Preferences.getInstance().addPreference("info/send_slice_info", True)
Preferences.getInstance().addPreference("info/asked_send_slice_info", False)
if not Preferences.getInstance().getValue("info/asked_send_slice_info"):
if not Preferences.getInstance().getValue("info/asked_send_slice_info") and Preferences.getInstance().getValue("info/send_slice_info"):
self.send_slice_info_message = Message(catalog.i18nc("@info", "Cura collects anonymised slicing statistics. You can disable this in the preferences."),
lifetime = 0,
dismissable = False,