Fix missing rerender when EvenHub apps finish downloading

This commit is contained in:
James Babcock committed 2026-09-25 02:02:16 -07:00
1 parent d6ce2f4194
commit a6291cf937
1 file changed
+4 -2
+4 -2
View File
@@ -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<boolean>((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;
}