summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2017-06-01 15:58:45 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2017-06-05 18:39:01 +0100
commit538eb3871e8179fa8337fe96a73f48d4be7a00df (patch)
tree005461941c5a163ed82b0ee4c8781668a241fcc6 /alot
parent70cc98c4ca9df85411a810e0a23b0cdaeb716813 (diff)
don't select "yes" on return
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/globals.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index 0ac1b294..c8acbee6 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -66,8 +66,8 @@ class ExitCommand(Command):
for buffer in ui.buffers:
if (isinstance(buffer, buffers.EnvelopeBuffer) and
not buffer.envelope.sent_time):
- if (yield ui.choice('quit without sending message?',
- select='yes', cancel='no',
+ msg = 'quit without sending message?'
+ if (yield ui.choice(msg, cancel='no',
msg_position='left')) == 'no':
raise CommandCanceled()
@@ -78,8 +78,7 @@ class ExitCommand(Command):
if ui.db_was_locked:
msg = 'Database locked. Exit without saving?'
- if (yield ui.choice(msg, select='yes', cancel='no',
- msg_position='left')) == 'no':
+ if (yield ui.choice(msg, msg_position='left', cancel='no')) == 'no':
return
ui.exit()
@@ -456,8 +455,8 @@ class BufferCloseCommand(Command):
if (isinstance(self.buffer, buffers.EnvelopeBuffer) and
not self.buffer.envelope.sent_time):
- if (not self.force and (yield ui.choice('close without sending?',
- select='yes', cancel='no',
+ msg = 'close without sending?'
+ if (not self.force and (yield ui.choice(msg, cancel='no',
msg_position='left')) ==
'no'):
raise CommandCanceled()