diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-11-15 13:16:30 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-11-15 13:16:30 +0000 |
commit | 0216ac29dbcf49865e145db42d9fbcfcd2bebd19 (patch) | |
tree | 93057b75c33fe756a88b4543c345aab8e841916b /src/core.py | |
parent | f4d4a205f136c6373c415657dd35b4f078f25c69 (diff) | |
download | poezio-0216ac29dbcf49865e145db42d9fbcfcd2bebd19.tar.gz poezio-0216ac29dbcf49865e145db42d9fbcfcd2bebd19.tar.bz2 poezio-0216ac29dbcf49865e145db42d9fbcfcd2bebd19.tar.xz poezio-0216ac29dbcf49865e145db42d9fbcfcd2bebd19.zip |
Do not refresh the screen on each input
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core.py b/src/core.py index ce271613..2d595cb3 100644 --- a/src/core.py +++ b/src/core.py @@ -822,8 +822,8 @@ class Core(object): body = message['body'] if body: date = date if delayed == True else None - if not delayed: - logger.groupchat(room_from, nick_from, body) + # if not delayed: + # logger.groupchat(room_from, nick_from, body) self.add_message_to_text_buffer(room, body, date, nick_from) self.refresh_window() self.doupdate() @@ -1344,7 +1344,9 @@ class Core(object): if not key: return res = self.current_tab().on_input(key) - self.refresh_window() + if res: + log.debug('RES is true') + self.refresh_window() def on_roster_enter_key(self, roster_row): """ |