Commit fc9b455b authored by Ondrej Holy's avatar Ondrej Holy Committed by Felipe Borges

user-accounts: Fix last login button sensitivity

The last login button should be insensitive for other accounts if the
panel is not unlocked.
parent fc073f21
......@@ -1435,6 +1435,9 @@ on_permission_changed (GPermission *permission,
gtk_widget_set_sensitive (get_widget (d, "account-fingerprint-button"), TRUE);
remove_unlock_tooltip (get_widget (d, "account-fingerprint-button"));
gtk_widget_set_sensitive (get_widget (d, "last-login-button"), TRUE);
remove_unlock_tooltip (get_widget (d, "last-login-button"));
else {
gtk_widget_hide (get_widget (d, "user-icon-button"));
......@@ -1448,6 +1451,9 @@ on_permission_changed (GPermission *permission,
gtk_widget_set_sensitive (get_widget (d, "account-fingerprint-button"), FALSE);
add_unlock_tooltip (get_widget (d, "account-fingerprint-button"));
gtk_widget_set_sensitive (get_widget (d, "last-login-button"), FALSE);
add_unlock_tooltip (get_widget (d, "last-login-button"));
um_password_dialog_set_user (d->password_dialog, user);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment