Browse Source

Remove email label from the account widget.

It's not needed and it's not currently public data that is published
with the user token.

Contributes to CURA-5784.
Diego Prado Gesto 6 years ago
parent
commit
a4c609d514
2 changed files with 5 additions and 25 deletions
  1. 2 0
      cura/OAuth2/Models.py
  2. 3 25
      resources/qml/Account/AccountDetails.qml

+ 2 - 0
cura/OAuth2/Models.py

@@ -1,4 +1,6 @@
 # Copyright (c) 2018 Ultimaker B.V.
+# Cura is released under the terms of the LGPLv3 or higher.
+
 from typing import Optional
 
 

+ 3 - 25
resources/qml/Account/AccountDetails.qml

@@ -27,36 +27,14 @@ Column
 
     Label
     {
-        id: message
+        id: information
         anchors.horizontalCenter: parent.horizontalCenter
         visible: !loggedIn
-        text: catalog.i18nc("@label", "Please login or create an account to 
enjoy all features of Ultimaker Cura")
+        text: loggedIn ? profile["username"] : catalog.i18nc("@label", "Please login or create an account to 
enjoy all features of Ultimaker Cura")
+        font: loggedIn ? UM.Theme.getFont("large") : UM.Theme.getFont("default")
         color: UM.Theme.getColor("text")
     }
 
-    Column
-    {
-        id: userInformation
-        anchors.horizontalCenter: parent.horizontalCenter
-        visible: loggedIn
-
-        Label
-        {
-            anchors.horizontalCenter: parent.horizontalCenter
-            text: loggedIn ? profile["username"] : ""
-            font: UM.Theme.getFont("large")
-            color: UM.Theme.getColor("text")
-        }
-
-        Label
-        {
-            anchors.horizontalCenter: parent.horizontalCenter
-            text: "email.address@hardcoded.is"
-            font: UM.Theme.getFont("default")
-            color: UM.Theme.getColor("text")
-        }
-    }
-
     Loader
     {
         id: accountEntryPoints