Skip to content

Commit

Permalink
implemented search box (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jberclaz authored Feb 4, 2025
1 parent 07caa57 commit aa1b1f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions turbostage/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ def _init_ui(self):

self.scan_progress_dialog = None

def filter_games(self):
pass
def filter_games(self, query: str):
for row in range(self.game_table.rowCount()):
title = self.game_table.item(row, 0)
match = title and (query.lower() in title.text().lower())
self.game_table.setRowHidden(row, not match)

def launch_game(self):
game_id, _ = self.selected_game
Expand Down

0 comments on commit aa1b1f5

Please sign in to comment.