[Update] Add update software UI(modal).

This commit is contained in:
Sakamoto Shiina
2024-11-30 20:41:53 +09:00
parent 5ddc77a9cc
commit b88efcdf08
7 changed files with 95 additions and 1 deletions

View File

@@ -5,4 +5,5 @@ export { useIsOpenedConfigPage } from "./useIsOpenedConfigPage";
export { useIsSoftwareUpdateAvailable } from "./useIsSoftwareUpdateAvailable";
export { useOpenFolder } from "./useOpenFolder";
export { useMessage } from "./useMessage";
export { useUpdateSoftware } from "./useUpdateSoftware";
export { useVolume } from "./useVolume";

View File

@@ -0,0 +1,12 @@
import { useStdoutToPython } from "@logics/useStdoutToPython";
export const useUpdateSoftware = () => {
const { asyncStdoutToPython } = useStdoutToPython();
const updateSoftware = () => {
asyncStdoutToPython("/run/update_software");
};
return {
updateSoftware,
};
};