From 2d2a83ea4cb2e6420acdd6d6c48364db1bce652f Mon Sep 17 00:00:00 2001 From: Mathis Kirchner Date: Sat, 9 May 2026 17:14:38 +0200 Subject: [PATCH] remove matchStateUpdate bcs alr implement in another pr --- .../main_menu/match_view/match_detail_view.dart | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/presentation/views/main_menu/match_view/match_detail_view.dart b/lib/presentation/views/main_menu/match_view/match_detail_view.dart index 3b52505..ed02538 100644 --- a/lib/presentation/views/main_menu/match_view/match_detail_view.dart +++ b/lib/presentation/views/main_menu/match_view/match_detail_view.dart @@ -205,7 +205,6 @@ class _MatchDetailViewState extends State { match: match, onWinnerChanged: () { widget.onMatchUpdate.call(); - updateMatchStateAfterSave(); }, ), ), @@ -230,17 +229,6 @@ class _MatchDetailViewState extends State { widget.onMatchUpdate.call(); } - /// Updates the match scores after saving in MatchResultView - Future updateMatchStateAfterSave() async { - final scores = await db.scoreEntryDao.getAllMatchScores(matchId: match.id); - - if (!mounted) return; - - setState(() { - match.scores = scores; - }); - } - /// Returns the widget to be displayed in the result [InfoTile] Widget getResultWidget(AppLocalizations loc) { if (isSingleRowResult()) {