feat: desktop notification when goose finishes a task (#8647)
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
This commit is contained in:
@@ -147,6 +147,7 @@ type ElectronAPI = {
|
||||
setSpellcheck: (enable: boolean) => Promise<boolean>;
|
||||
getSpellcheckState: () => Promise<boolean>;
|
||||
openNotificationsSettings: () => Promise<boolean>;
|
||||
isAnyWindowFocused: () => Promise<boolean>;
|
||||
onMouseBackButtonClicked: (callback: () => void) => void;
|
||||
offMouseBackButtonClicked: (callback: () => void) => void;
|
||||
on: (
|
||||
@@ -267,6 +268,7 @@ const electronAPI: ElectronAPI = {
|
||||
setSpellcheck: (enable: boolean) => ipcRenderer.invoke('set-spellcheck', enable),
|
||||
getSpellcheckState: () => ipcRenderer.invoke('get-spellcheck-state'),
|
||||
openNotificationsSettings: () => ipcRenderer.invoke('open-notifications-settings'),
|
||||
isAnyWindowFocused: () => ipcRenderer.invoke('is-any-window-focused'),
|
||||
onMouseBackButtonClicked: (callback: () => void) => {
|
||||
// Wrapper that ignores the event parameter.
|
||||
const wrappedCallback = (_event: Electron.IpcRendererEvent) => callback();
|
||||
|
||||
Reference in New Issue
Block a user