feat(shell): open 动作会前置并激活已有浮窗(Agent 调 float_window open 时不再是无操作)
This commit is contained in:
@@ -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 } }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user