diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-01-20 22:04:43 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-01-20 22:04:43 +0100 |
commit | 21843511ef9e0482da917c9e01f1add1949fabde (patch) | |
tree | d6d5264d1641671c1171195c44ef2b7f490b6fd7 /alot/ui.py | |
parent | 6b2a8ee809353f8a18f0bc6ac4b9af30e66d8762 (diff) |
buffers: make get_info() asynchronous
Allows computing message/thread counts asynchronously in a separate
thread.
Diffstat (limited to 'alot/ui.py')
-rw-r--r-- | alot/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -71,7 +71,7 @@ class _StatusBar(urwid.WidgetWrap): self._do_update(fmtstrings, initial_info) async def sb_update(): - buf_info = buf.get_info() + buf_info = await buf.get_info() buf_info.update(info) self._do_update(fmtstrings, buf_info) |