Skip to content

Fix: Remove script callbacks in ordered_callbacks_map#15428

Merged
AUTOMATIC1111 merged 1 commit intoAUTOMATIC1111:devfrom
v0xie:fix/remove-callbacks
Apr 1, 2024
Merged

Fix: Remove script callbacks in ordered_callbacks_map#15428
AUTOMATIC1111 merged 1 commit intoAUTOMATIC1111:devfrom
v0xie:fix/remove-callbacks

Conversation

@v0xie
Copy link
Contributor

@v0xie v0xie commented Apr 1, 2024

Description

  • This PR fixes script callbacks persisting after script_callbacks.remove_current_script_callbacks() is called. This would cause unexpected behavior by having extension callbacks not update in subsequent runs.

  • The problem was that remove_callbacks() did not remove callbacks from ordered_callbacks_map dict. We iterate through ordered_callbacks_map like callbacks_map to remove the script's callbacks.

  • The bug was introduced in commit 7e5e673.

Screenshots/videos:

Checklist:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants