mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 23:57:54 +00:00
Merge PR #1496: fix script settings path picker
This commit is contained in:
commit
0851e27c6d
1 file changed
+6
@@ -1,6 +1,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:app_links/app_links.dart';
|
||||
import 'package:file_picker/file_picker.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter_foreground_task/flutter_foreground_task.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
@@ -17,6 +18,11 @@ import 'util/util.dart';
|
||||
|
||||
Future<void> main(List<String> args) async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
if (Util.isMacos()) {
|
||||
// Gopeed is not sandboxed. Configure each engine before the main/child
|
||||
// window split so native file and directory dialogs work in both windows.
|
||||
await FilePicker.skipEntitlementsChecks();
|
||||
}
|
||||
if (Util.isAndroid()) {
|
||||
FlutterForegroundTask.initCommunicationPort();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user