From 16c61b9690f850ff68076103382adfd93a7d13f8 Mon Sep 17 00:00:00 2001 From: Oleg Lokhvitsky Date: Sun, 13 Oct 2024 19:07:23 -0700 Subject: [PATCH] Don't hide update progress dialog just because update notification dialog is hidden --- src/renderer/react/AppUpdaterDialog.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/renderer/react/AppUpdaterDialog.tsx b/src/renderer/react/AppUpdaterDialog.tsx index b21fb84..28a0d82 100644 --- a/src/renderer/react/AppUpdaterDialog.tsx +++ b/src/renderer/react/AppUpdaterDialog.tsx @@ -151,7 +151,7 @@ export default function AppUpdaterDialog() { ); useEffect(() => { - if (update == null || isUpdateIgnored || !isDialogEnabled) { + if (update == null) { return; } @@ -160,7 +160,9 @@ export default function AppUpdaterDialog() { return; } - showNotificationDialog(); + if (isDialogEnabled && !isUpdateIgnored) { + showNotificationDialog(); + } }, [ isDialogEnabled, isUpdateIgnored,