Click the live preview to bring the VM window to the front

未关闭
#55 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
electron, react, typescript
领域
desktop

调研方向

The preview is in the Summary tab, and the work is in the Electron main process, which knows the QEMU pid. Read how the QEMU process is launched and where its window handle could be found, then decide between a native Windows call and asking QEMU to raise itself, since the issue leaves that open. Done means clicking the preview brings the VM window to the foreground on Windows, or the preview no longer looks clickable if that proves unreliable.

由索引模型根据 Issue 内容生成。

描述

enhancement ui

Split out of #8. The preview itself is in the Summary tab now, the other half of #8 is clicking it to bring the VM's own window to the front.

QEMU's window belongs to another process, and Windows only lets the foreground process hand focus to another window (SetForegroundWindow rules), so this needs either a small native call from the main process (AllowSetForegroundWindow for the QEMU pid, then SetForegroundWindow on its top-level window) or asking QEMU to raise itself. Ideally without adding a native module to the build.

If it can't be done reliably, the preview should at least not look clickable.

主要语言
TypeScript
星标
3
派生
0
平均合并
2 分钟
30 天内合并 PR
35

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

A21-devs/Virtual-Machine-Manager 的其他 Issue

查看 A21-devs/Virtual-Machine-Manager 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。