[Update] Add feature Restore Main Window Geometry.

Note: the toggle-able setting, to restore or don't, has removed for now.
This commit is contained in:
Sakamoto Shiina
2024-10-13 03:57:23 +09:00
parent 0c3b36a43d
commit 0582091908
12 changed files with 183 additions and 22 deletions

View File

@@ -0,0 +1,28 @@
// import { useStore_RestoreWindowGeometry } from "@store";
// import { useStdoutToPython } from "@logics/useStdoutToPython";
// export const useRestoreWindowGeometry = () => {
// const { asyncStdoutToPython } = useStdoutToPython();
// const { currentRestoreWindowGeometry, updateRestoreWindowGeometry, pendingRestoreWindowGeometry } = useStore_RestoreWindowGeometry();
// const getRestoreWindowGeometry = () => {
// pendingRestoreWindowGeometry();
// asyncStdoutToPython("/get/data/restore_main_window_geometry");
// };
// const toggleRestoreWindowGeometry = () => {
// pendingRestoreWindowGeometry();
// if (currentRestoreWindowGeometry.data) {
// asyncStdoutToPython("/set/disable/restore_main_window_geometry");
// } else {
// asyncStdoutToPython("/set/enable/restore_main_window_geometry");
// }
// };
// return {
// currentRestoreWindowGeometry,
// getRestoreWindowGeometry,
// toggleRestoreWindowGeometry,
// updateRestoreWindowGeometry,
// };
// };