Skip to content

Commit c582d10

Browse files
committed
fix(clipart): Add await to clipart cache generation to fix race condition
- Changed fileHelper.generateClipartCache() to await fileHelper.generateClipartCache() - Ensures cache is fully generated before UI accesses it - Fixes issue #1605 where saved clipart doesn't appear on first app restart
1 parent 1ab9163 commit c582d10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/view/draw_badge_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class _DrawBadgeState extends State<DrawBadge> {
253253
await fileHelper.saveImage(drawToggle.getDrawViewGrid());
254254
}
255255

256-
fileHelper.generateClipartCache();
256+
await fileHelper.generateClipartCache();
257257
ToastUtils().showToast(GetIt.instance
258258
.get<LocalizationService>()
259259
.l10n

0 commit comments

Comments
 (0)