[Update] Add update software UI(modal).

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

No files matched your search

+1
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";
+12
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,
};
};