summaryrefslogtreecommitdiff
path: root/lib/level_selection.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/level_selection.dart')
-rw-r--r--lib/level_selection.dart7
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;
});
}