[gnome-initial-setup] account: Avoid redundantly setting account type and username



commit 4745b70bf0f07f8f46ef87c64740540236464883
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Feb 5 16:23:28 2020 +0000

    account: Avoid redundantly setting account type and username
    
    We’ve just passed these to `act_user_manager_create_user()`, so they
    should be set and correct already. Some brief testing with D-Feet shows
    this to be the case.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 gnome-initial-setup/pages/account/gis-account-page-local.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page-local.c 
b/gnome-initial-setup/pages/account/gis-account-page-local.c
index b8bdf5e..021f356 100644
--- a/gnome-initial-setup/pages/account/gis-account-page-local.c
+++ b/gnome-initial-setup/pages/account/gis-account-page-local.c
@@ -526,9 +526,6 @@ local_create_user (GisAccountPageLocal *page)
     return;
   }
 
-  act_user_set_user_name (priv->act_user, username);
-  act_user_set_account_type (priv->act_user, priv->account_type);
-
   set_user_avatar (page);
 
   g_signal_emit (page, signals[USER_CREATED], 0, priv->act_user, "");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]