mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Improved debug messages
This commit is contained in:
parent
625d29fcf1
commit
4e14bd077c
3 changed files with 7 additions and 15 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue