From 685323adeab3d27bff4df16a201f9f14688475d5 Mon Sep 17 00:00:00 2001 From: Orangerot Date: Tue, 7 Jan 2025 06:05:28 +0100 Subject: feat: GameOverStats Widgets shows stats after a course --- lib/level_selection.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/level_selection.dart') diff --git a/lib/level_selection.dart b/lib/level_selection.dart index e902304..5359d66 100644 --- a/lib/level_selection.dart +++ b/lib/level_selection.dart @@ -109,12 +109,11 @@ class _LevelSelectionState extends State { prefs.getString('stepmania_courses'); if (stepmaniaCoursesPathSetting == null) return; + List stepmaniaCoursesFoldersFuture = await listFilesAndFolders(stepmaniaCoursesPathSetting); + setState(() { stepmaniaCoursesPath = stepmaniaCoursesPathSetting; - }); - setState(() async { - stepmaniaCoursesFolders = - await listFilesAndFolders(stepmaniaCoursesPathSetting); + stepmaniaCoursesFolders = stepmaniaCoursesFoldersFuture; }); } -- cgit v1.2.3