You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
fix
This commit is contained in:
@@ -166,7 +166,7 @@ def draw_interface(audio_files: list, playlists: dict, selected_idx: int, curren
|
||||
"""Draw the TUI interface with day-of-week sections"""
|
||||
clear_screen()
|
||||
term_width, term_height = terminal_size_cache.getElement("width", False), terminal_size_cache.getElement("height", False)
|
||||
if term_width or term_height == 0:
|
||||
if term_width is None or term_height is None:
|
||||
term_width, term_height = get_terminal_size()
|
||||
terminal_size_cache.saveElement("width", term_width, 30, False, True)
|
||||
terminal_size_cache.saveElement("height", term_height, 30, False, True)
|
||||
@@ -254,10 +254,9 @@ def main():
|
||||
|
||||
terminal_size_cache = libcache.Cache()
|
||||
|
||||
# Main loop
|
||||
while True:
|
||||
term_width, term_height = terminal_size_cache.getElement("width", False), terminal_size_cache.getElement("height", False)
|
||||
if term_width or term_height == 0:
|
||||
if term_width is None or term_height is None:
|
||||
term_width, term_height = get_terminal_size()
|
||||
terminal_size_cache.saveElement("width", term_width, 30, False, True)
|
||||
terminal_size_cache.saveElement("height", term_height, 30, False, True)
|
||||
|
||||
Reference in New Issue
Block a user