Skip to content

Commit

Permalink
Correct DB clear command and convert it to async #170 #269
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCsabaToth committed Jul 23, 2023
1 parent 94c3eab commit bf769b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ui/about.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ class AboutScreenState extends State<AboutScreen> {
Get.find<BasePrefService>()
.set(databaseMigrationNeededTag, databaseMigrationNeededDefault);
final database = Get.find<Isar>();
database.clearSync();
await database.writeTxn(() async {
await database.clear();
});
// Get.find<BasePrefService>().set(welcomePresentedTag, welcomePresentedDefault);
},
));
Expand Down

0 comments on commit bf769b6

Please sign in to comment.