[Update] Add save success notification.

This commit is contained in:
Sakamoto Shiina
2025-06-21 02:35:41 +09:00
parent 824be74b6e
commit 1623352c92
14 changed files with 440 additions and 144 deletions

View File

@@ -20,7 +20,7 @@ export const useHotkeys = () => {
pendingHotkeys();
asyncStdoutToPython("/get/data/hotkeys");
};
const { showNotification_Success, showNotification_Error, closeNotification } = useNotificationStatus();
const { showNotification_SaveSuccess, showNotification_Error, closeNotification } = useNotificationStatus();
const setHotkeys = (hotkeys) => {
pendingHotkeys();
@@ -106,11 +106,17 @@ export const useHotkeys = () => {
}
};
const setSuccessHotkeys = (hotkeys) => {
updateHotkeys(hotkeys);
showNotification_SaveSuccess();
};
return {
currentHotkeys,
getHotkeys,
updateHotkeys,
setHotkeys,
setSuccessHotkeys,
registerShortcuts,
unregisterAll,
};