mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-29 13:51:02 +00: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 { settingsContext } from "@renderer/context";
|
||||||
import "./settings-general.scss";
|
import "./settings-general.scss";
|
||||||
import { DesktopDownloadIcon } from "@primer/octicons-react";
|
import { DesktopDownloadIcon } from "@primer/octicons-react";
|
||||||
|
import { logger } from "@renderer/logger";
|
||||||
|
|
||||||
interface LanguageOption {
|
interface LanguageOption {
|
||||||
option: string;
|
option: string;
|
||||||
@@ -150,7 +151,8 @@ export function SettingsGeneral() {
|
|||||||
setInstallingCommonRedist(true);
|
setInstallingCommonRedist(true);
|
||||||
try {
|
try {
|
||||||
await window.electron.installCommonRedist();
|
await window.electron.installCommonRedist();
|
||||||
} finally {
|
} catch (err) {
|
||||||
|
logger.error(err);
|
||||||
setInstallingCommonRedist(false);
|
setInstallingCommonRedist(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user