Skip to content

Commit

Permalink
refactor(action): registerAction
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Aug 7, 2023
1 parent 3c77f26 commit 03a636a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/core/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function registerAction<T extends string> (action: Action<T>) {
description: action.description,
configurable: typeof action.configurable === 'boolean' ? action.configurable : true,
keys: action.keys,
handler: getActionHandler(action.name),
handler: action.name,
when: action.when,
})
}
Expand Down

0 comments on commit 03a636a

Please sign in to comment.