mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-15 16:33:02 -03:00
feat: disabling button when installing
This commit is contained in:
@@ -13,6 +13,7 @@ import { orderBy } from "lodash-es";
|
||||
import { settingsContext } from "@renderer/context";
|
||||
import "./settings-general.scss";
|
||||
import { DesktopDownloadIcon } from "@primer/octicons-react";
|
||||
import { logger } from "@renderer/logger";
|
||||
|
||||
interface LanguageOption {
|
||||
option: string;
|
||||
@@ -150,7 +151,8 @@ export function SettingsGeneral() {
|
||||
setInstallingCommonRedist(true);
|
||||
try {
|
||||
await window.electron.installCommonRedist();
|
||||
} finally {
|
||||
} catch (err) {
|
||||
logger.error(err);
|
||||
setInstallingCommonRedist(false);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user