Skip to content

Commit b91c48c

Browse files
authored
Update llamdrop.py
1 parent dc6c568 commit b91c48c

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

llamdrop.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,23 +167,27 @@ def run_main_menu(stdscr, device_profile, notice=None, vulkan_info=None):
167167
status = " llama.cpp: ✗ not installed"
168168
color = 4
169169
stdscr.attron(curses.color_pair(color))
170-
stdscr.addstr(3, 0, status[:width])
170+
stdscr.addstr(llama_row, 0, status[:width])
171171
stdscr.attroff(curses.color_pair(color))
172172

173173
# Version notice
174+
notice_row = llama_row + 1
175+
separator_row = llama_row + 2
176+
menu_top_row = llama_row + 4
177+
174178
if notice:
175179
notice_line = f" 🆕 New version available: {notice}"
176180
stdscr.attron(curses.color_pair(4) | curses.A_BOLD)
177-
stdscr.addstr(4, 0, notice_line[:width])
181+
stdscr.addstr(notice_row, 0, notice_line[:width])
178182
stdscr.attroff(curses.color_pair(4) | curses.A_BOLD)
179183

180184
try:
181-
stdscr.addstr(5, 0, "─" * width)
185+
stdscr.addstr(separator_row, 0, "─" * width)
182186
except curses.error:
183187
pass
184188

185189
# Menu items
186-
top = 7
190+
top = menu_top_row
187191
for i, (icon, label, desc) in enumerate(menu_items):
188192
row = top + i * 2
189193
if row >= height - 2:

0 commit comments

Comments
 (0)