2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

Improved debug messages

This commit is contained in:
Oliver Walters
2022-05-22 09:17:32 +10:00
parent 625d29fcf1
commit 4e14bd077c
3 changed files with 7 additions and 15 deletions

View File

@ -60,16 +60,11 @@ class InvenTreePreferencesDB {
// Get a platform-specific directory where persistent app data can be stored
final appDocumentDir = await getApplicationDocumentsDirectory();
print("Documents Dir: ${appDocumentDir.toString()}");
print("Path: ${appDocumentDir.path}");
// Path with the form: /platform-specific-directory/demo.db
final dbPath = join(appDocumentDir.path, "InvenTreeSettings.db");
final database = await databaseFactoryIo.openDatabase(dbPath);
// Any code awaiting the Completer's future will now start executing
_dbOpenCompleter.complete(database);
}
}