Skip to content

Commit 9bd4e94

Browse files
committed
chore: disable tooltip window for now (#1262)
1 parent 7dd1e33 commit 9bd4e94

File tree

1 file changed

+3
-0
lines changed
  • src/main/presenter/windowPresenter

1 file changed

+3
-0
lines changed

src/main/presenter/windowPresenter/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export class WindowPresenter implements IWindowPresenter {
4242
private settingsWindow: BrowserWindow | null = null
4343
private tooltipOverlayWindows = new Map<number, BrowserWindow>()
4444
private pendingTooltipPayload = new Map<number, { x: number; y: number; text: string }>()
45+
// TEMP: Tooltip overlay window creation is disabled while renderer tooltip overlay is unstable.
46+
private isTooltipOverlayEnabled = false
4547

4648
constructor(configPresenter: IConfigPresenter) {
4749
this.windows = new Map()
@@ -1078,6 +1080,7 @@ export class WindowPresenter implements IWindowPresenter {
10781080
}
10791081

10801082
private getOrCreateTooltipOverlay(parentWindow: BrowserWindow): BrowserWindow | null {
1083+
if (!this.isTooltipOverlayEnabled) return null
10811084
if (parentWindow.isDestroyed()) return null
10821085
// Do not create overlay on macOS fullscreen; it hides traffic lights
10831086
if (process.platform === 'darwin' && parentWindow.isFullScreen()) return null

0 commit comments

Comments
 (0)