summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2020-08-09 20:44:41 +0200
committerMaxime Buquet <pep@bouah.net>2020-08-09 20:44:41 +0200
commita72a484509ceb276ac037b6ce4c6a1b733bbbe2f (patch)
tree6adc8625c67b9dfb51f2c0fcb14c6010d7562d05
parentf065fbaef99814c4035720ced86413c56b26315a (diff)
parent604587a5d96cd1b532a68e60be2c52eba72c0c23 (diff)
downloadpoezio-a72a484509ceb276ac037b6ce4c6a1b733bbbe2f.tar.gz
poezio-a72a484509ceb276ac037b6ce4c6a1b733bbbe2f.tar.bz2
poezio-a72a484509ceb276ac037b6ce4c6a1b733bbbe2f.tar.xz
poezio-a72a484509ceb276ac037b6ce4c6a1b733bbbe2f.zip
Merge branch 'timemarker-uitypes' into 'master'
plugins/time_marker: use now required poezio.ui.types See merge request poezio/poezio!153
-rw-r--r--plugins/time_marker.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/time_marker.py b/plugins/time_marker.py
index 76f7e589..6ce511a0 100644
--- a/plugins/time_marker.py
+++ b/plugins/time_marker.py
@@ -31,6 +31,7 @@ Messages like “2 hours, 25 minutes passed…” are automatically displayed in
from poezio.plugin import BasePlugin
from datetime import datetime, timedelta
+from poezio.ui.types import InfoMessage
class Plugin(BasePlugin):
@@ -72,4 +73,5 @@ class Plugin(BasePlugin):
delta = datetime.now() - last_message_date
if delta >= timedelta(0, self.config.get('delay', 900)):
tab.add_message(
- "%s passed…" % (format_timedelta(delta), ), str_time='')
+ InfoMessage("%s passed…" % (format_timedelta(delta), ))
+ )