mirror of
https://github.com/pdxlocations/contact.git
synced 2026-08-06 08:53:29 +02:00
I think it works!
This commit is contained in:
@@ -515,7 +515,7 @@ def draw_messages_window(scroll_to_bottom: bool = False) -> None:
|
||||
else:
|
||||
ui_state.selected_message = max(min(ui_state.selected_message, msg_line_count - visible_lines), 0)
|
||||
|
||||
draw_main_arrows(messages_win, msg_line_count, ui_state.start_index, ui_state.current_window, window=messages_win)
|
||||
draw_main_arrows(messages_win, msg_line_count, ui_state.start_index, 1, window=messages_win)
|
||||
messages_win.refresh()
|
||||
|
||||
refresh_pad(1)
|
||||
@@ -624,7 +624,7 @@ def scroll_messages(direction: int) -> None:
|
||||
0, min(ui_state.start_index[ui_state.current_window], max_index - visible_height + 1)
|
||||
)
|
||||
|
||||
draw_main_arrows(messages_win, msg_line_count, ui_state.start_index, ui_state.current_window)
|
||||
draw_main_arrows(messages_win, msg_line_count, ui_state.start_index, ui_state.current_window, window=messages_win)
|
||||
messages_win.refresh()
|
||||
|
||||
refresh_pad(1)
|
||||
|
||||
@@ -391,16 +391,13 @@ def draw_main_arrows(win: object, max_index: int, start_index: List[int], curren
|
||||
usable_height = height - 2
|
||||
usable_width = width - 2
|
||||
|
||||
if current_window == 1:
|
||||
pass
|
||||
|
||||
# if (packetlog_win := kwargs.get("window")) and ui_state.current_window == 1:
|
||||
# usable_height -= packetlog_win.getmaxyx()[0] - 1 if ui_state.display_log else 0
|
||||
|
||||
# if current_window == 1 and ui_state.display_log:
|
||||
# usable_height -= 1
|
||||
|
||||
# if current_window == 1:
|
||||
# usable_height -= 2
|
||||
|
||||
if height < max_index:
|
||||
if usable_height < max_index:
|
||||
if start_index[current_window] > 0:
|
||||
win.addstr(1, usable_width, "▲", get_color("settings_default"))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user