Skip to content

Commit

Permalink
Merge pull request #139 from TheRedSpy15/develop
Browse files Browse the repository at this point in the history
request sync permissions
  • Loading branch information
TheRedSpy15 committed May 17, 2024
2 parents e2fdd43 + 6183364 commit f7557e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/pages/sync/sync.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ final syncForcedProvider = StateProvider<bool>((ref) {
return false;
});

void setCameraRoll(WidgetRef ref) {
void setCameraRoll(WidgetRef ref) async {
if (!await getSyncPermissions()) {
return;
}

final dir = FilePicker.platform.getDirectoryPath();
dir.then((value) {
if (value != null) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
# format: x.x.x+x0x0x
version: 1.5.0+10500
version: 1.5.1+10501

environment:
sdk: '>=3.1.2 <4.0.0'
Expand Down

0 comments on commit f7557e4

Please sign in to comment.