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

@@ -8,4 +8,4 @@ final class Range<T extends num> {
@override
String toString() => 'Range($start, $end)';
}
}

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 831;
static const int build = 843;
static const String engine = "3.19.5";
static const String buildAt = "2024-03-31 15:42:28";
static const String buildAt = "2024-04-08 23:44:39";
static const int modifications = 4;
static const int script = 42;
static const int script = 44;
}

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,

View File

@@ -856,9 +856,7 @@ class _SettingPageState extends State<SettingPage> {
);
}
void _showFontSizeDialog(
StorePropertyBase<double> property,
) {
void _showFontSizeDialog(StorePropertyBase<double> property) {
final ctrller = TextEditingController(text: property.fetch().toString());
void onSave() {
context.pop();