diff options
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r-- | alot/commands/globals.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 1104bd10..1c9bacea 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -73,7 +73,10 @@ class ExitCommand(Command): for b in ui.buffers: b.cleanup() - await ui.apply_command(FlushCommand(callback=ui.exit)) + if ui.dbman.ro: + ui.exit() + else: + await ui.apply_command(FlushCommand(callback=ui.exit)) ui.cleanup() if ui.db_was_locked: |