summaryrefslogtreecommitdiff
path: root/alot/command.py
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-08-07 18:06:10 +0100
committerpazz <patricktotzke@gmail.com>2011-08-07 18:06:10 +0100
commit7f2b99082011c1064e58b7058ac83c0ee7f519ce (patch)
tree15f8fe83f91142fe2cd26195cc66a69a47fe20a6 /alot/command.py
parentfc5ff1695cab0723c965d81579c9ce1b7a46ba59 (diff)
ui.choice prompts user for a choice
Diffstat (limited to 'alot/command.py')
-rw-r--r--alot/command.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/command.py b/alot/command.py
index c66c6681..4c13ebcf 100644
--- a/alot/command.py
+++ b/alot/command.py
@@ -57,6 +57,10 @@ class Command:
class ExitCommand(Command):
"""shuts the MUA down cleanly"""
def apply(self, ui):
+ if settings.config.getboolean('general', 'bug_on_exit'):
+ if not ui.choice('realy quit?', choices={'yes':['y','q','enter'],
+ 'no':['n']}) == 'yes':
+ return
ui.shutdown()