mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Save preferences to same directory to binary file on Windows
This commit is contained in:
@@ -42,6 +42,7 @@ Future<void> initLogger() async {
|
||||
}
|
||||
|
||||
void main() async {
|
||||
if (!kIsWeb) WidgetsFlutterBinding.ensureInitialized();
|
||||
bool? usePathUrl = const bool.fromEnvironment("usePathUrl");
|
||||
if (usePathUrl == true && kIsWeb) {
|
||||
usePathUrlStrategy();
|
||||
@@ -49,7 +50,6 @@ void main() async {
|
||||
if (!kIsWeb) await prepareJar();
|
||||
await preparePrefs();
|
||||
if (isDesktop) {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await windowManager.ensureInitialized();
|
||||
}
|
||||
await initLogger();
|
||||
|
||||
Reference in New Issue
Block a user