Résolution bug du filtre sur pc
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -5,4 +5,5 @@ __pycache__/
|
||||
sources.json
|
||||
gamelist.xml
|
||||
*.log
|
||||
*.rar
|
||||
*.rar
|
||||
*.zip
|
||||
@@ -516,7 +516,8 @@ async def main():
|
||||
draw_game_list(screen)
|
||||
if config.search_mode:
|
||||
draw_game_list(screen)
|
||||
draw_virtual_keyboard(screen)
|
||||
if config.is_non_pc:
|
||||
draw_virtual_keyboard(screen)
|
||||
elif config.menu_state == "download_progress":
|
||||
draw_progress_screen(screen)
|
||||
elif config.menu_state == "download_result":
|
||||
|
||||
@@ -5,7 +5,7 @@ import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Version actuelle de l'application
|
||||
app_version = "1.9.6"
|
||||
app_version = "1.9.6.1"
|
||||
|
||||
|
||||
# URL du serveur OTA
|
||||
|
||||
@@ -393,7 +393,7 @@ def handle_controls(event, sources, joystick, screen):
|
||||
config.needs_redraw = True
|
||||
logger.debug(f"Suppression caractère: query={config.search_query}, jeux filtrés={len(config.filtered_games)}")
|
||||
# Gestion de la validation
|
||||
elif is_input_matched(event, "select"):
|
||||
elif is_input_matched(event, "confirm"):
|
||||
config.search_mode = False
|
||||
config.filter_active = True # Conserver le filtre actif
|
||||
config.current_game = 0
|
||||
|
||||
@@ -380,7 +380,7 @@ def draw_game_list(screen):
|
||||
screen.blit(title_surface, title_rect)
|
||||
elif config.filter_active:
|
||||
filter_text = f"Filtre actif : {config.search_query}"
|
||||
title_surface = config.small_font.render(filter_text, True, THEME_COLORS["text"])
|
||||
title_surface = config.font.render(filter_text, True, THEME_COLORS["fond_lignes"])
|
||||
title_rect = title_surface.get_rect(center=(config.screen_width // 2, title_surface.get_height() // 2 + 20))
|
||||
title_rect_inflated = title_rect.inflate(60, 30)
|
||||
title_rect_inflated.topleft = ((config.screen_width - title_rect_inflated.width) // 2, 10)
|
||||
|
||||
Reference in New Issue
Block a user