Should fix the refresh issue
This commit is contained in:
parent
12e6de0cdc
commit
372b032380
3 changed files with 7 additions and 3 deletions
|
@ -141,7 +141,7 @@ def save_remote(xmpp, method="privatexml"):
|
||||||
|
|
||||||
def save_local():
|
def save_local():
|
||||||
"""Save the local bookmarks."""
|
"""Save the local bookmarks."""
|
||||||
all = ''.join([bookmark.local() for bookmark in bookmarks if bookmark.method is 'local'])
|
all = ''.join(bookmark.local() for bookmark in bookmarks if bookmark.method is 'local')
|
||||||
config.set_and_save('rooms', all)
|
config.set_and_save('rooms', all)
|
||||||
|
|
||||||
def save(xmpp, core=None):
|
def save(xmpp, core=None):
|
||||||
|
|
|
@ -109,7 +109,7 @@ class Config(RawConfigParser):
|
||||||
exist
|
exist
|
||||||
"""
|
"""
|
||||||
df = open(self.file_name, 'r')
|
df = open(self.file_name, 'r')
|
||||||
lines_before = [line.strip() for line in df.readlines()]
|
lines_before = (line.strip() for line in df.readlines())
|
||||||
df.close()
|
df.close()
|
||||||
result_lines = []
|
result_lines = []
|
||||||
we_are_in_the_right_section = False
|
we_are_in_the_right_section = False
|
||||||
|
|
|
@ -1335,10 +1335,14 @@ class Core(object):
|
||||||
if tab is self.current_tab():
|
if tab is self.current_tab():
|
||||||
tab.text_win.refresh()
|
tab.text_win.refresh()
|
||||||
tab.info_header.refresh(tab, tab.text_win)
|
tab.info_header.refresh(tab, tab.text_win)
|
||||||
|
tab.input.refresh()
|
||||||
|
self.doupdate()
|
||||||
elif tab.state != old_state:
|
elif tab.state != old_state:
|
||||||
self.refresh_tab_win()
|
self.refresh_tab_win()
|
||||||
|
self.current_tab().input.refresh()
|
||||||
|
self.doupdate()
|
||||||
if 'message' in config.get('beep_on', 'highlight private').split():
|
if 'message' in config.get('beep_on', 'highlight private').split():
|
||||||
if config.get_by_tabname('disable_beep', 'false', jid.bare, False).lower() != 'true':
|
if config.get_by_tabname('disable_beep', 'false', room_from, False).lower() != 'true':
|
||||||
curses.beep()
|
curses.beep()
|
||||||
|
|
||||||
def add_message_to_text_buffer(self, buff, txt, time=None, nickname=None, history=None):
|
def add_message_to_text_buffer(self, buff, txt, time=None, nickname=None, history=None):
|
||||||
|
|
Loading…
Reference in a new issue