From 62b9768006a392195033ea25d2436962720d659a Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Sun, 3 Aug 2025 00:55:34 +0400 Subject: [PATCH] fix: don't block browser launch on version update --- src/app/page.tsx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index e102405..b181106 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -191,21 +191,10 @@ export default function Home() { [processingUrls], ); - // Version updater for handling version fetching progress events and auto-updates - const { isUpdating: isVersionUpdating } = useVersionUpdater(); - // Auto-update functionality - use the existing hook for compatibility const updateNotifications = useUpdateNotifications(loadProfiles); const { checkForUpdates, isUpdating } = updateNotifications; - // Combined update checking function for per-browser blocking - const isBrowserUpdating = useCallback( - (browser: string) => { - return isVersionUpdating || isUpdating(browser); - }, - [isVersionUpdating, isUpdating], - ); - // Profiles loader with update check (for initial load and manual refresh) const loadProfilesWithUpdateCheck = useCallback(async () => { try { @@ -771,7 +760,7 @@ export default function Home() { onChangeVersion={openChangeVersionDialog} onConfigureCamoufox={handleConfigureCamoufox} runningProfiles={runningProfiles} - isUpdating={isBrowserUpdating} + isUpdating={isUpdating} onDeleteSelectedProfiles={handleDeleteSelectedProfiles} onAssignProfilesToGroup={handleAssignProfilesToGroup} selectedGroupId={selectedGroupId} @@ -841,7 +830,7 @@ export default function Home() { ); }} url={pendingUrl.url} - isUpdating={isBrowserUpdating} + isUpdating={isUpdating} runningProfiles={runningProfiles} /> ))}