Merge pull request #438 from michael-lazar/login_prompt

Changing logout prompt to a pop-up notification
This commit is contained in:
Michael Lazar authored and GitHub committed 2017-09-13 01:57:59 -04:00
commit 38aa9253da
1 file changed
+2 -1
+2 -1
View File
@@ -226,7 +226,8 @@ class Page(object):
"""
if self.reddit.is_oauth_session():
if self.term.prompt_y_or_n('Log out? (y/n): '):
ch = self.term.show_notification('Log out? (y/n)')
if ch in (ord('y'), ord('Y')):
self.oauth.clear_oauth_data()
self.term.show_notification('Logged out')
else: