diff options
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/ipc-event-channel.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/src/shared/ipc-event-channel.ts b/gui/src/shared/ipc-event-channel.ts index 2bb594f5e6..66d1bf2c95 100644 --- a/gui/src/shared/ipc-event-channel.ts +++ b/gui/src/shared/ipc-event-channel.ts @@ -5,6 +5,7 @@ import * as uuid from 'uuid'; import { IGuiSettingsState } from './gui-settings-state'; import { IAppUpgradeInfo, ICurrentAppVersionInfo } from '../main/index'; +import { IWindowShapeParameters } from '../main/window-controller'; import { AccountToken, BridgeState, @@ -128,6 +129,8 @@ interface IWireguardKeyHandlers extends ISender<string | undefined> { /// Events names +const WINDOW_SHAPE_CHANGED = 'window-shape-changed'; + const DAEMON_CONNECTED = 'daemon-connected'; const DAEMON_DISCONNECTED = 'daemon-disconnected'; @@ -184,6 +187,10 @@ export class IpcRendererEventChannel { }, }; + public static windowShape: IReceiver<IWindowShapeParameters> = { + listen: listen(WINDOW_SHAPE_CHANGED), + }; + public static daemonConnected: IReceiver<void> = { listen: listen(DAEMON_CONNECTED), }; @@ -265,6 +272,10 @@ export class IpcMainEventChannel { }, }; + public static windowShape: ISender<IWindowShapeParameters> = { + notify: sender<IWindowShapeParameters>(WINDOW_SHAPE_CHANGED), + }; + public static daemonConnected: ISenderVoid = { notify: senderVoid(DAEMON_CONNECTED), }; |
