Skip to content

Commit 3187bc1

Browse files
committed
fix(desktop): adapt TaggedError and DesktopWindow mock to latest main
1 parent 2b0df2c commit 3187bc1

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎apps/desktop/src/app/DesktopTray.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ const desktopWindowLayer = Layer.succeed(DesktopWindow.DesktopWindow, {
7777
handleBackendReady: () => Effect.void,
7878
handleBackendNotReady: Effect.void,
7979
flushMainWindowBounds: Effect.void,
80+
prepareCaptureReveal: Effect.void,
8081
dispatchMenuAction: () => Effect.void,
82+
dispatchSnapShotEvent: () => Effect.void,
8183
zoomMain: () => Effect.void,
8284
syncAppearance: Effect.void,
8385
} satisfies DesktopWindow.DesktopWindow["Service"]);

‎apps/desktop/src/app/DesktopTray.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import * as DesktopWindow from "../window/DesktopWindow.ts";
1515
/**
1616
* Error raised when configuring the high-level desktop system tray fails.
1717
*/
18-
export class DesktopTrayConfigureError extends Schema.TaggedErrorClass<DesktopTrayConfigureError>()(
18+
export class DesktopTrayConfigureError extends Schema.TaggedError<DesktopTrayConfigureError>()(
1919
"DesktopTrayConfigureError",
2020
{
2121
cause: Schema.Defect(),

‎apps/desktop/src/electron/ElectronTray.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import * as Electron from "electron";
1111
/**
1212
* Error raised when creating the Electron system tray instance fails.
1313
*/
14-
export class ElectronTrayCreateError extends Schema.TaggedErrorClass<ElectronTrayCreateError>()(
14+
export class ElectronTrayCreateError extends Schema.TaggedError<ElectronTrayCreateError>()(
1515
"ElectronTrayCreateError",
1616
{
1717
iconPath: Schema.String,
@@ -26,7 +26,7 @@ export class ElectronTrayCreateError extends Schema.TaggedErrorClass<ElectronTra
2626
/**
2727
* Error raised when performing an operation on the system tray fails.
2828
*/
29-
export class ElectronTrayOperationError extends Schema.TaggedErrorClass<ElectronTrayOperationError>()(
29+
export class ElectronTrayOperationError extends Schema.TaggedError<ElectronTrayOperationError>()(
3030
"ElectronTrayOperationError",
3131
{
3232
operation: Schema.String,

0 commit comments

Comments
 (0)