From 2d762515b4d585c132c49dd296d3b658e8ef90bb Mon Sep 17 00:00:00 2001 From: Russell Schmidt Date: Sun, 26 Jan 2025 11:22:59 -0600 Subject: [PATCH] Maybe fix crash with settings scroll --- settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.py b/settings.py index 6cbdb0c..3d88295 100644 --- a/settings.py +++ b/settings.py @@ -48,7 +48,7 @@ def display_menu(current_menu, menu_path, selected_index, show_save_option): try: # Use red color for "Reboot" or "Shutdown" color = get_color("settings_sensitive" if option in sensitive_settings else "settings_default", reverse = (idx == selected_index)) - menu_pad.addstr(idx, 0, f"{display_option:<{width // 2 - 2}} {display_value}".ljust(menu_pad.getmaxyx()[0]).ljust(width - 8), color) + menu_pad.addstr(idx, 0, f"{display_option:<{width // 2 - 2}} {display_value}".ljust(width - 8), color) except curses.error: pass