Skip to content

Commit e9e70f5

Browse files
committed
fix(*)
1 parent da97278 commit e9e70f5

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"cmake.sourceDirectory": "E:/project/pure_live/windows",
33
"cmake.configureOnOpen": true,
44
"cmake.ignoreCMakeListsMissing": true,
5-
"dart.flutterSdkPath": ".fvm/versions/3.38.3"
5+
"dart.flutterSdkPath": "F:/flutter-sdk/bin"
66
}

lib/main.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ class _MyAppState extends State<MyApp> with DesktopWindowMixin {
3636
DesktopManager.initializeListeners(this);
3737
}
3838
initShareM3uState();
39-
initGlopalPlayer();
39+
// 延迟初始化, 防止出现闪退
40+
Future.delayed(Duration(seconds: 3)).then((value) async {
41+
await initGlopalPlayer();
42+
});
4043
}
4144

4245
Future<void> initGlopalPlayer() async {

0 commit comments

Comments
 (0)