diff options
author | Orangerot <purple@orangerot.dev> | 2025-01-07 06:05:28 +0100 |
---|---|---|
committer | Orangerot <purple@orangerot.dev> | 2025-01-07 06:05:28 +0100 |
commit | 685323adeab3d27bff4df16a201f9f14688475d5 (patch) | |
tree | ffda52d0d2ebd01451914fc5d3cb15ab564146a6 /lib/level_selection.dart | |
parent | 0178eb5ffcc6ba798ab5f30c055d4be35610c655 (diff) |
feat: GameOverStats Widgets shows stats after a course
Diffstat (limited to 'lib/level_selection.dart')
-rw-r--r-- | lib/level_selection.dart | 7 |
1 files changed, 3 insertions, 4 deletions
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<LevelSelection> { prefs.getString('stepmania_courses'); if (stepmaniaCoursesPathSetting == null) return; + List<FileSystemEntity> stepmaniaCoursesFoldersFuture = await listFilesAndFolders(stepmaniaCoursesPathSetting); + setState(() { stepmaniaCoursesPath = stepmaniaCoursesPathSetting; - }); - setState(() async { - stepmaniaCoursesFolders = - await listFilesAndFolders(stepmaniaCoursesPathSetting); + stepmaniaCoursesFolders = stepmaniaCoursesFoldersFuture; }); } |