9db95ed3a2
- [secret-store] Don't save session keyring to disk - [dbus] Allow unlocking even when always unlock is not available - [dbus] Hide the automatically unlock check when login not usable - [login] Fix various issues storing and using auto unlock passwords
27 lines
947 B
Diff
27 lines
947 B
Diff
From 0512a0b5a30b432f53ee8c48d75acd582c5c9c9d Mon Sep 17 00:00:00 2001
|
|
From: Stef Walter <stef@memberwebs.com>
|
|
Date: Sun, 21 Mar 2010 14:24:33 +0000
|
|
Subject: [dbus] Hide the automatically unlock check when login not usable.
|
|
|
|
If the login keyring is locked or not present, hide the auto
|
|
unlock check box since that option isn't usable.
|
|
---
|
|
diff --git a/daemon/dbus/gkd-secret-unlock.c b/daemon/dbus/gkd-secret-unlock.c
|
|
index 52e4978..8a70ddc 100644
|
|
--- a/daemon/dbus/gkd-secret-unlock.c
|
|
+++ b/daemon/dbus/gkd-secret-unlock.c
|
|
@@ -200,6 +200,11 @@ prepare_unlock_prompt (GkdSecretUnlock *self, GP11Object *coll, gboolean first)
|
|
|
|
g_free (label);
|
|
|
|
+ if (gkd_login_is_usable ())
|
|
+ gkd_prompt_show_widget (prompt, "auto_unlock_check");
|
|
+ else
|
|
+ gkd_prompt_hide_widget (prompt, "auto_unlock_check");
|
|
+
|
|
/* Setup the unlock options */
|
|
if (first) {
|
|
template = gp11_object_get_template (coll, CKA_G_CREDENTIAL_TEMPLATE, &error);
|
|
--
|
|
cgit v0.8.3.1
|