feat(desktop-wake): add wecom_search profile for SearchResultWindow2 (1.2.6)
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 27s
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 27s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -24,8 +24,9 @@ StrategyFn = Callable[[int, Profile], Tuple[str, str]]
|
||||
|
||||
|
||||
def _strategy_activate(hwnd: int, profile: Profile) -> Tuple[str, str]:
|
||||
activate_hwnd(hwnd, maximize=True)
|
||||
return "foreground+maximize", "ok"
|
||||
maximize = bool(getattr(profile, "activate_maximize", True))
|
||||
activate_hwnd(hwnd, maximize=maximize)
|
||||
return ("foreground+maximize" if maximize else "foreground"), "ok"
|
||||
|
||||
|
||||
def _strategy_wm_getobject(hwnd: int, _profile: Profile) -> Tuple[str, str]:
|
||||
|
||||
Reference in New Issue
Block a user