Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(preview): report desktop-rendered server tabs as visible #19495

ClosedJustYannicc(GitHub profile, opens in a new tab)wants to merge 17 commits intomain fromrefs/pull/19495/headopened View on GitHub

Showing 15 changed files with 55 additions and 0 deletions (loading 12).

x
0 of 15 viewed, 15 left
11 additions and 0 deletionsapps/desktop/src/ipc/methods/preview.tsModified
View file
@@ -10,6 +10,7 @@
DesktopPreviewScreenshotArtifactSchema,
DesktopPreviewSetAudioMutedInputSchema,
DesktopPreviewSetColorSchemeInputSchema,
+ DesktopPreviewSetVisibleInputSchema,
DesktopPreviewSetZoomFactorInputSchema,
BrowserImportResult,
BrowserImportSource,
@@ -196,6 +197,15 @@
yield* manager.setAudioMuted(tabId, audioMuted);
}),
});
+export const setVisible = DesktopIpc.makeIpcMethod({
+ channel: IpcChannels.PREVIEW_SET_VISIBLE_CHANNEL,
+ payload: DesktopPreviewSetVisibleInputSchema,
+ result: Schema.Void,
+ handler: Effect.fn("desktop.ipc.preview.setVisible")(function* ({ tabId, visible }) {
+ const manager = yield* PreviewManager.PreviewManager;
+ yield* manager.setVisible(tabId, visible);
+ }),
+});
export const openDevTools = tabMethod(
IpcChannels.PREVIEW_OPEN_DEVTOOLS_CHANNEL,
"desktop.ipc.preview.openDevTools",
@@ -452,6 +462,7 @@
setColorScheme,
setZoomFactor,
setAudioMuted,