Save preferences to same directory to binary file on Windows

This commit is contained in:
2023-08-30 22:09:39 +08:00
parent 63b5e9f71e
commit 6f3a400ed8
12 changed files with 257 additions and 6 deletions

View File

@@ -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();