File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ import 'dart:io' ;
2
+
1
3
import 'package:dantotsu/Screens/Login/LoginScreen.dart' ;
2
4
import 'package:dantotsu/Screens/Manga/MangaScreen.dart' ;
3
5
import 'package:dantotsu/api/EpisodeDetails/GetMediaIDs/GetMediaIDs.dart' ;
@@ -25,7 +27,6 @@ import 'Theme/ThemeManager.dart';
25
27
import 'Theme/ThemeProvider.dart' ;
26
28
import 'api/Discord/Discord.dart' ;
27
29
import 'api/TypeFactory.dart' ;
28
-
29
30
late Isar isar;
30
31
31
32
void main (List <String > args) async {
@@ -50,7 +51,9 @@ Future init() async {
50
51
isar = await StorageProvider ().initDB (null );
51
52
await StorageProvider ().requestPermission ();
52
53
MediaKit .ensureInitialized ();
53
- await windowManager.ensureInitialized ();
54
+ if (Platform .isWindows || Platform .isLinux || Platform .isMacOS) {
55
+ await WindowManager .instance.ensureInitialized ();
56
+ }
54
57
TypeFactory .registerAllTypes ();
55
58
GetMediaIDs .getData ();
56
59
initializeDateFormatting ();
You can’t perform that action at this time.
0 commit comments