Fix fetching logs from the server
This commit is contained in:
parent
d7f6d5a536
commit
eff5ab31ba
2 changed files with 5 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
## Next version
|
## Next version
|
||||||
|
|
||||||
- Add nick list
|
- Add nick list
|
||||||
|
- Fix fetching old logs
|
||||||
- Rename project from "cheuph" to "bowl"
|
- Rename project from "cheuph" to "bowl"
|
||||||
- Clean up code
|
- Clean up code
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -440,9 +440,10 @@ class RoomWidget(urwid.WidgetWrap):
|
||||||
def render(self, size: Tuple[int, int], focus: bool) -> None:
|
def render(self, size: Tuple[int, int], focus: bool) -> None:
|
||||||
canvas = super().render(size, focus)
|
canvas = super().render(size, focus)
|
||||||
|
|
||||||
if self._tree.hit_top and not self._requesting_logs:
|
if not self._hit_top_of_supply:
|
||||||
self._requesting_logs = True
|
if self._tree.hit_top and not self._requesting_logs:
|
||||||
self.request_logs()
|
self._requesting_logs = True
|
||||||
|
self.request_logs()
|
||||||
|
|
||||||
return canvas
|
return canvas
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue