(payload: {
enabled: boolean;
accelerator: string;
})
| 110 | * @param payload - Whether the shortcut is enabled and the Electron accelerator string. |
| 111 | */ |
| 112 | export async function applyKeyboardShortcut(payload: { |
| 113 | enabled: boolean; |
| 114 | accelerator: string; |
| 115 | }): Promise<{ success: boolean }> { |
| 116 | return await window.gitify.applyKeyboardShortcut({ |
| 117 | enabled: payload.enabled, |
| 118 | keyboardShortcut: payload.accelerator, |
| 119 | }); |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Updates the tray icon color based on the number of unread notifications. |
no outgoing calls
no test coverage detected