fix: desktop init

This commit is contained in:
lollipopkit
2024-04-09 00:13:00 +08:00
parent 4fd82afade
commit 5f701980a4
6 changed files with 30 additions and 32 deletions

View File

@@ -75,11 +75,11 @@ void _runInZone(void Function() body) {
Future<void> _initApp() async {
WidgetsFlutterBinding.ensureInitialized();
await _initDesktopWindow();
// Base of all data.
await _initDb();
await setupLocator();
await _initDesktopWindow();
Computer.shared.turnOn(
// Plus 1 to avoid 0.
workersCount: (Stores.server.box.keys.length / 3).round() + 1,