mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 10:47:25 +01:00
Backend: Fix error at first startup
after the permissions were granted, the backend state was set to ready without checking the music library path.
This commit is contained in:
parent
c83b942690
commit
24f2022930
1 changed files with 1 additions and 3 deletions
|
|
@ -88,9 +88,7 @@ class BackendState extends State<Backend> {
|
||||||
await _permissionHandler.requestPermissions([PermissionGroup.storage]);
|
await _permissionHandler.requestPermissions([PermissionGroup.storage]);
|
||||||
|
|
||||||
if (result[PermissionGroup.storage] == PermissionStatus.granted) {
|
if (result[PermissionGroup.storage] == PermissionStatus.granted) {
|
||||||
setState(() {
|
_loadMusicLibrary();
|
||||||
status = BackendStatus.ready;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue