[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:
28
src-ui/logics/configs/appearance/useRestoreWindowGeometry.js
Normal file
28
src-ui/logics/configs/appearance/useRestoreWindowGeometry.js
Normal 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,
|
||||
// };
|
||||
// };
|
||||
Reference in New Issue
Block a user