Commit c8ddc632 authored by mathieui's avatar mathieui

Properly refresh the bookmarks method in the bookmarks tab

… … …
parent 1b8618d6
...@@ -21,6 +21,8 @@ https://dev.louiz.org/projects/poezio/roadmap ...@@ -21,6 +21,8 @@ https://dev.louiz.org/projects/poezio/roadmap
- Only send an unavailable presence on closing a room if we are joined. - Only send an unavailable presence on closing a room if we are joined.
- Don’t display the current date for history messages received today. - Don’t display the current date for history messages received today.
- Fix marquee and dice plugin to use newer Last Message Correction format. - Fix marquee and dice plugin to use newer Last Message Correction format.
- Bookmarks tab properly displays bookmarks method (local/remote) and allows
to switch between them again.
# Forgotten additions # Forgotten additions
......
...@@ -269,7 +269,7 @@ class BookmarksWin(Win): ...@@ -269,7 +269,7 @@ class BookmarksWin(Win):
self.current_horizontal_input].set_color( self.current_horizontal_input].set_color(
theme.COLOR_NORMAL_TEXT) theme.COLOR_NORMAL_TEXT)
self.current_horizontal_input += 1 self.current_horizontal_input += 1
if self.current_horizontal_input > 3: if self.current_horizontal_input > 4:
self.current_horizontal_input = 0 self.current_horizontal_input = 0
self.lines[self.current_input][ self.lines[self.current_input][
self.current_horizontal_input].set_color( self.current_horizontal_input].set_color(
...@@ -363,7 +363,7 @@ class BookmarksWin(Win): ...@@ -363,7 +363,7 @@ class BookmarksWin(Win):
continue continue
if i >= self.height + self.scroll_pos: if i >= self.height + self.scroll_pos:
break break
for j in range(4): for j in range(5):
inp[j].refresh() inp[j].refresh()
if self.lines and self.current_input < self.height - 1: if self.lines and self.current_input < self.height - 1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment