changeset 460:9f738c3ae9ba

Do the foregoing only if the user had explicitly asked for the remember option
author Chris Cannam
date Thu, 30 Jun 2011 00:05:24 +0100
parents ee06f9275c99
children 33a1c7c9d9d9
files easyhg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/easyhg.py	Thu Jun 30 00:04:33 2011 +0100
+++ b/easyhg.py	Thu Jun 30 00:05:24 2011 +0100
@@ -232,7 +232,7 @@
 
     def ask(self, force_dialog):
 
-        if self.auth_store.user and self.auth_store.passwd:
+        if self.auth_store.user and self.auth_store.passwd and self.auth_store.remember:
             if not force_dialog:
                 return (self.auth_store.user, self.auth_store.passwd)