feat(shell): open 动作会前置并激活已有浮窗(Agent 调 float_window open 时不再是无操作)

This commit is contained in:
2026-09-27 14:25:50 +08:00
parent 5aa92d50da
commit f708c52e3e
+1
View File
@@ -384,6 +384,7 @@ function Invoke-Cmd([string]$c) {
'fullscreen' { Toggle-Fullscreen }
'hide' { Send-ToPage @{ type = 'cmd'; cmd = 'hide' } }
'show' { $form.Show(); $form.Activate(); Send-ToPage @{ type = 'cmd'; cmd = 'show' } }
'open' { if (-not $form.Visible) { $form.Show() }; $form.Activate(); $form.BringToFront(); Send-ToPage @{ type = 'cmd'; cmd = 'show' } }
default { Send-ToPage @{ type = 'cmd'; cmd = $c } }
}
}