Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNino van Hooff <ninovanhooff@gmail.com>2020-05-15 14:34:58 +0300
committerNino van Hooff <ninovanhooff@gmail.com>2020-05-15 14:34:58 +0300
commit58e43c0a07cbd349e3df433352f5f56aa5e0c26d (patch)
tree386875ac54333bb44b90dc3acdd09dee5944d5e1 /plugins/SliceInfoPlugin
parenta09cd0e63e6b5cffba068c9f704b01280b2313e7 (diff)
Convert doxygen to rst for SentryLogger, SimulationView, SliceInfo,
SolidView
Diffstat (limited to 'plugins/SliceInfoPlugin')
-rwxr-xr-xplugins/SliceInfoPlugin/SliceInfo.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py
index c21d70819a..a4b17236dd 100755
--- a/plugins/SliceInfoPlugin/SliceInfo.py
+++ b/plugins/SliceInfoPlugin/SliceInfo.py
@@ -26,10 +26,13 @@ if TYPE_CHECKING:
catalog = i18nCatalog("cura")
-## This Extension runs in the background and sends several bits of information to the Ultimaker servers.
-# The data is only sent when the user in question gave permission to do so. All data is anonymous and
-# no model files are being sent (Just a SHA256 hash of the model).
class SliceInfo(QObject, Extension):
+ """This Extension runs in the background and sends several bits of information to the Ultimaker servers.
+
+ The data is only sent when the user in question gave permission to do so. All data is anonymous and
+ no model files are being sent (Just a SHA256 hash of the model).
+ """
+
info_url = "https://stats.ultimaker.com/api/cura"
def __init__(self, parent = None):
@@ -54,9 +57,11 @@ class SliceInfo(QObject, Extension):
if self._more_info_dialog is None:
self._more_info_dialog = self._createDialog("MoreInfoWindow.qml")
- ## 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):
+ """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.
+ """
self._application.getPreferences().setValue("info/asked_send_slice_info", True)
if action_id == "MoreInfo":
self.showMoreInfoDialog()