mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
Directly get the RootFolder from the Provider
Instead of going through the StateContainer
This commit is contained in:
@ -73,8 +73,7 @@ Future<void> showAlertDialog(
|
||||
}
|
||||
|
||||
bool folderWithSpecExists(BuildContext context, String spec) {
|
||||
var stateContainer = Provider.of<StateContainer>(context, listen: false);
|
||||
var rootFolder = stateContainer.appState.notesFolder;
|
||||
var rootFolder = Provider.of<NotesFolderFS>(context, listen: false);
|
||||
|
||||
return rootFolder.getFolderWithSpec(spec) != null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user