fix uncaucht choice/battle exceptions

This commit is contained in:
Maxime Réaux 2026-03-19 12:03:49 +01:00
parent f5ad45f671
commit 0081e52e9a
5 changed files with 156 additions and 126 deletions

View file

@ -599,6 +599,12 @@ class View(QtWidgets.QMainWindow, Ui_MainWindow):
def show_round_details(self, *, index: int | None) -> None:
self.roundNb.setText(f"Round {index}")
def clear_round_page(self) -> None:
choices_table = self.choicesTable
choices_table.clearContents()
battles_table = self.battlesTable
battles_table.clearContents()
def display_round_choices(self, participants: List[ChoiceDTO]) -> None:
table = self.choicesTable
table.setSortingEnabled(False)