DSH / Atlas
2026-09-16implementedbug-fixarchived 2026-09-18

Movable mandatory-update window

可移动的强更窗口

The Windows mandatory-update page used a frameless modal overlay sized to the product window. The modal disabled its parent, so the parent's native title bar could not be used to move or maximize either window. Closing the overlay was intercepted, leaving no visible exit control.

English

Problem

The Windows mandatory-update page used a frameless modal overlay sized to the product window. The modal disabled its parent, so the parent's native title bar could not be used to move or maximize either window. Closing the overlay was intercepted, leaving no visible exit control.

Decision

On Windows, mandatory policy uses a separate native framed modal with move, resize, and maximize controls. The parent remains disabled while policy blocks interaction. Closing the modal requests normal application shutdown; it never dismisses policy and resumes the product window. Other platforms retain the existing overlay presentation. The mandatory-update decision still owns policy and installation authorization.

Alternatives considered

Keep the full-content overlay and add a drag region. A drag region would move the disabled parent indirectly and would not restore native maximize or close controls.

Let close dismiss the policy page. That would expose the blocked product window without a fresh no-force policy response.

Consequences

Windows users can place or maximize the update window and exit the application from its close button. Modal blocking and the second installation approval remain intact. Installer-owned quit disposes the modal before Electron closes windows, so its close guard cannot block installation. The native frame replaces the dimmed full-content overlay on Windows; the ordinary update dialog keeps its existing overlay.

中文

Problem

Windows 强更页面原先使用与产品窗口等大的无边框模态覆盖层。模态窗口禁用了父窗口,因此无法使用父窗口的原生标题栏移动或最大化窗口。覆盖层的关闭操作又被拦截,界面上没有可用的退出控件。

Decision

在 Windows 上,强更策略使用独立的原生有边框模态窗口,支持移动、调整大小和最大化。策略阻塞期间父窗口仍不可操作。关闭模态窗口会请求应用正常退出,不会取消策略并恢复产品窗口。其他平台保留现有覆盖层展示。强更决策仍负责策略与安装授权。

Alternatives considered

保留覆盖整个内容区域的窗口并添加拖动区域。 拖动区域只能间接移动被禁用的父窗口,也无法恢复原生最大化和关闭控件。

允许关闭时直接取消策略页面。 这样会在未取得新的无需强更响应时暴露被阻塞的产品窗口。

Consequences

Windows 用户可以移动或最大化更新窗口,也可通过关闭按钮退出应用。模态阻塞和第二次安装批准保持不变。安装器接管退出时,壳会在 Electron 关闭窗口前释放模态窗口,避免关闭拦截阻止安装。Windows 上的原生边框取代了遮罩整个内容区域的覆盖层;常规更新弹窗仍使用原有覆盖层。