diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-01-07 16:18:41 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-01-26 09:06:54 +0100 |
| commit | 420147939bcda37c7f1b0efa673326c59b96147b (patch) | |
| tree | 218b23b88ca1692dc90dcf17293cecb14809a9be /gui/src/main | |
| parent | 841a4ba05c3fc2f2c46dd420b9c9868862290003 (diff) | |
| download | mullvadvpn-420147939bcda37c7f1b0efa673326c59b96147b.tar.xz mullvadvpn-420147939bcda37c7f1b0efa673326c59b96147b.zip | |
Move types used in ipc to ipc-types.ts
Diffstat (limited to 'gui/src/main')
| -rw-r--r-- | gui/src/main/index.ts | 8 | ||||
| -rw-r--r-- | gui/src/main/window-controller.ts | 5 |
2 files changed, 2 insertions, 11 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index fa522b66d4..56027141ec 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -39,6 +39,7 @@ import { SYSTEM_PREFERRED_LOCALE_KEY } from '../shared/gui-settings-state'; import log, { ConsoleOutput, Logger } from '../shared/logging'; import { LogLevel } from '../shared/logging-types'; import { IpcMainEventChannel } from './ipc-event-channel'; +import { ICurrentAppVersionInfo } from '../shared/ipc-types'; import { AccountExpiredNotificationProvider, CloseToAccountExpiryNotificationProvider, @@ -90,13 +91,6 @@ enum AppQuitStage { ready, } -export interface ICurrentAppVersionInfo { - gui: string; - daemon: string; - isConsistent: boolean; - isBeta: boolean; -} - type AccountVerification = { status: 'verified' } | { status: 'deferred'; error: Error }; class ApplicationMain { diff --git a/gui/src/main/window-controller.ts b/gui/src/main/window-controller.ts index bed94c37da..69ae6acb02 100644 --- a/gui/src/main/window-controller.ts +++ b/gui/src/main/window-controller.ts @@ -1,15 +1,12 @@ import { BrowserWindow, Display, screen, Tray, WebContents } from 'electron'; import { IpcMainEventChannel } from './ipc-event-channel'; +import { IWindowShapeParameters } from '../shared/ipc-types'; interface IPosition { x: number; y: number; } -export interface IWindowShapeParameters { - arrowPosition?: number; -} - interface IWindowPositioning { getPosition(window: BrowserWindow): IPosition; getWindowShapeParameters(window: BrowserWindow): IWindowShapeParameters; |
