[Update] Add save success notification.

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

No files matched your search

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