Skip to content

Commit 2140fcb

Browse files
tonyco97edospadoni
authored andcommitted
fix: avoid to delete shortcut on clear button
1 parent 7c66359 commit 2140fcb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/renderer/src/components/Modules/NethVoice/BaseModule/ProfileDialog/SettingsSettings/SettingsShortcutDialog.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ export function SettingsShortcutDialog() {
8282

8383
function handleClearShortcut() {
8484
setCombo('')
85-
if (account?.shortcut) {
86-
const updatedAccount = { ...account, shortcut: '' }
87-
setAccount(() => updatedAccount)
88-
window.electron.send(IPC_EVENTS.CHANGE_SHORTCUT, '')
89-
}
9085
}
9186

9287
async function submit(data) {

0 commit comments

Comments
 (0)