Move properties into account details itself

There isn't really a point to setting them from when the object is created...

CURA-7418
This commit is contained in:
Jaime van Kessel 2020-06-11 16:51:42 +02:00
parent ed53557044
commit 1f402569ad
No known key found for this signature in database
GPG Key ID: 3710727397403C91
2 changed files with 5 additions and 9 deletions

View File

@ -9,9 +9,10 @@ import Cura 1.1 as Cura
Column
{
property var profile: null
property var loggedIn: false
property var profileImage: ""
property var profile: Cura.API.account.userProfile
property bool loggedIn: Cura.API.account.isLoggedIn
property var profileImage: Cura.API.account.profileImageUrl
padding: UM.Theme.getSize("wide_margin").height
spacing: UM.Theme.getSize("wide_margin").height

View File

@ -133,12 +133,7 @@ Item
Behavior on opacity { NumberAnimation { duration: 100 } }
contentItem: AccountDetails
{
id: panel
profile: Cura.API.account.userProfile
loggedIn: Cura.API.account.isLoggedIn
profileImage: Cura.API.account.profileImageUrl
}
{}
background: UM.PointingRectangle
{