You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
windows_snap.py contains the following updated logic to snap a window to a position:
if position_name in _snap_positions:
position = _snap_positions[position_name]
else:
# Previously this function took a spoken form, but we now have constant identifiers in `_snap_positions`.
# If the user passed a previous spoken form instead, see if we can convert it to the new identifier.
new_key = actions.user.formatted_text(position_name, "ALL_CAPS,SNAKE_CASE")
if new_key in _snap_positions:
actions.user.deprecate_action(
"2024-12-02",
f"snap_window_to_position('{position_name}')",
f"snap_window_to_position('{new_key}')",
)
position = _snap_positions[new_key]
actions.user.snap_window(position, window)
else:
raise KeyError(position_name)
Unfortunately, this code does nothing since the old snap positions have been deprecated (snap_ window is only called in the else case).
The text was updated successfully, but these errors were encountered:
windows_snap.py
contains the following updated logic to snap a window to a position:Unfortunately, this code does nothing since the old snap positions have been deprecated (
snap_ window
is only called in the else case).The text was updated successfully, but these errors were encountered: