Skip to content

fix(ui): always add selectModelsTab hotkey data to prevent unhandled exception while registering the hotkey handler #7981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 1, 2025

Conversation

psychedelicious
Copy link
Collaborator

@psychedelicious psychedelicious commented Apr 30, 2025

Summary

If the modelManager app feature is disabled, the hotkey data to switch to the model manager tab is never added. Then, when the hotkey handler is defined, because the data wasn't added, there is an error.

This PR ensures the hotkey data is always added and adds an additional global override for disabling hotkeys. Only the models tab hotkey uses this right now. The override is set when the modelManager feature is disabled via InvokeAIUI prop.

Related Issues / Discussions

n/a

QA Instructions

n/a

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@psychedelicious psychedelicious changed the title fix(ui): always add selectModelsTab hotkey data to prevent unhandled … fix(ui): always add selectModelsTab hotkey data to prevent unhandled exception while registering the hotkey handler Apr 30, 2025
@github-actions github-actions bot added the frontend PRs that change frontend files label Apr 30, 2025
…exception while registering the hotkey handler
This will both hide the hotkey from the hotkey modal and override any other enabled status it has.
@psychedelicious psychedelicious force-pushed the psyche/fix/ui/mm-hotkey branch from 076d640 to 89bf2b7 Compare April 30, 2025 21:26
@maryhipp maryhipp enabled auto-merge (rebase) May 1, 2025 14:48
@maryhipp maryhipp merged commit 5d69e90 into main May 1, 2025
12 checks passed
@maryhipp maryhipp deleted the psyche/fix/ui/mm-hotkey branch May 1, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants