Small fixes for disable user data triggering preferences window

This commit is contained in:
ChrisTerBeke 2017-12-22 11:38:56 +01:00
parent c3954c40ac
commit b29047abd3
3 changed files with 14 additions and 12 deletions

View file

@ -52,11 +52,13 @@ class SliceInfo(Extension):
self.send_slice_info_message.actionTriggered.connect(self.messageActionTriggered)
self.send_slice_info_message.show()
## Perform action based on user input.
# Note that clicking "Disable" won't actually disable the data sending, but rather take the user to preferences where they can disable it.
def messageActionTriggered(self, message_id, action_id):
if action_id == "Disable":
CuraApplication.getInstance().triggerPreferenceWindow.emit()
self.send_slice_info_message.hide()
Preferences.getInstance().setValue("info/asked_send_slice_info", True)
if action_id == "Disable":
CuraApplication.getInstance().showPreferences()
self.send_slice_info_message.hide()
def _onWriteStarted(self, output_device):
try: