Skip to content

Commit

Permalink
Fix text on rom row showing what media is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
milouk committed Oct 3, 2024
1 parent 920ba47 commit e9ddaba
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,17 +494,28 @@ def load_roms(self) -> None:
if condition
]

already_scraped = "/".join(already_scraped)
base_entry_text = rom.name[:48] + "..." if len(rom.name) > 50 else rom.name
if already_scraped:
base_entry_text += " " * 75 + already_scraped
already_scraped_text = "/".join(already_scraped)
max_length = 48
base_entry_text = (
rom.name[:max_length] + "..."
if len(rom.name) > max_length
else rom.name
)

self.row_list(
base_entry_text,
(20, 50 + (i * 35)),
600,
i == (roms_selected_position % max_elem),
)

if already_scraped_text:
self.row_list(
already_scraped_text,
(500, 50 + (i * 35)),
50,
i == (roms_selected_position % max_elem),
)
self.button_rectangle((30, 450), "Start", "All")
self.button_circle((170, 450), "A", "Download")
self.button_circle((300, 450), "B", "Back")
Expand Down

0 comments on commit e9ddaba

Please sign in to comment.