feat: 诊断模式

This commit is contained in:
xkeyC
2025-11-26 13:16:20 +08:00
parent f744acbad5
commit 9959ae8c8f
2 changed files with 306 additions and 18 deletions

View File

@@ -123,6 +123,7 @@ class AppGlobalModel extends _$AppGlobalModel {
// init Hive
try {
Hive.init("$applicationSupportDir/db");
await Future.delayed(const Duration(milliseconds: 100));
final box = await Hive.openBox("app_conf");
state = state.copyWith(appConfBox: box);
if (box.get("install_id", defaultValue: "") == "") {