fix: always disable browser while it is updating

This commit is contained in:
zhom
2025-07-31 22:40:34 +04:00
parent 5b31cfaf32
commit f4c33ad96e
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { invoke } from "@tauri-apps/api/core";
import { useCallback, useEffect, useState } from "react";
import { getBrowserDisplayName } from "@/lib/browser-utils";
import type { BrowserProfile } from "@/types";
export function useBrowserSupport() {
@@ -168,7 +169,7 @@ export function useBrowserState(
}
if (isBrowserUpdating) {
return `${profile.browser} is being updated. Please wait for the update to complete.`;
return `${getBrowserDisplayName(profile.browser)} is being updated. Please wait for the update to complete.`;
}
if (