From 6a1f09def03096d90a88e600b5fe843baf8950c1 Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Wed, 6 Oct 2021 16:19:31 +0200 Subject: [PATCH] Add is_logged_in status datapoint CURA-8443 --- plugins/SliceInfoPlugin/SliceInfo.py | 1 + plugins/SliceInfoPlugin/example_data.html | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py index 02e71207e0..0e8db0f88a 100755 --- a/plugins/SliceInfoPlugin/SliceInfo.py +++ b/plugins/SliceInfoPlugin/SliceInfo.py @@ -130,6 +130,7 @@ class SliceInfo(QObject, Extension): data["cura_version"] = self._application.getVersion() data["cura_build_type"] = ApplicationMetadata.CuraBuildType org_id = user_profile.get("organization_id", None) if user_profile else None + data["is_logged_in"] = self._application.getCuraAPI().account.isLoggedIn data["organization_id"] = org_id if org_id else None data["subscriptions"] = user_profile.get("subscriptions", []) if user_profile else [] diff --git a/plugins/SliceInfoPlugin/example_data.html b/plugins/SliceInfoPlugin/example_data.html index 5b97f1cba6..85a9f554ff 100644 --- a/plugins/SliceInfoPlugin/example_data.html +++ b/plugins/SliceInfoPlugin/example_data.html @@ -7,6 +7,7 @@ Intent Profile: Default
Quality Profile: Fast
Using Custom Settings: No
+ Is Logged In: Yes
Organization ID (if any): ABCDefGHIjKlMNOpQrSTUvYxWZ0-1234567890abcDE=
Subscriptions (if any):