From a6291cf9370f51652a4675b035269e9fa24d9f40 Mon Sep 17 00:00:00 2001 From: James Babcock Date: Fri, 25 Sep 2026 02:02:16 -0700 Subject: [PATCH] Fix missing rerender when EvenHub apps finish downloading --- app/apps/evenhub/store-install.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/apps/evenhub/store-install.ts b/app/apps/evenhub/store-install.ts index 5c63e1a9..faa60f8c 100644 --- a/app/apps/evenhub/store-install.ts +++ b/app/apps/evenhub/store-install.ts @@ -53,8 +53,6 @@ export async function installStoreApp( const needsPrompt = (manifest.permissions.length > 0 || privacyPolicyUrl) && !alreadyGranted(app.packageId, manifest); if (needsPrompt) { - options.onStatus(""); - ctx.actions.requestRender(); const accepted = await new Promise((resolve) => { ctx.stack.push( new EvenHubPermissionDialogLayer( @@ -65,6 +63,10 @@ export async function installStoreApp( () => resolve(false), ), ); + // Only once the dialog is stacked: an in-process window's requestRender + // paints synchronously, and nothing else repaints after a download. + options.onStatus(""); + ctx.actions.requestRender(); }); if (!accepted) return null; }