Skip to content
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

assistant_panel: Close menus on send #25440

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

5brian
Copy link
Contributor

@5brian 5brian commented Feb 24, 2025

Closes #ISSUE

Before:

Screen.Recording.2025-02-23.at.11.11.39.PM.mov

After:

Screen.Recording.2025-02-23.at.11.13.29.PM.mov

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 24, 2025
@@ -319,10 +319,14 @@ impl ContextEditor {
}

fn assist(&mut self, _: &Assist, window: &mut Window, cx: &mut Context<Self>) {
self.slash_menu_handle.hide(cx);
self.language_model_selector_menu_handle.hide(cx);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would checking if they are open be better?

    if self.slash_menu_handle.is_deployed() {
        self.slash_menu_handle.hide(cx);
    }
    if self.language_model_selector_menu_handle.is_deployed() {
        self.language_model_selector_menu_handle.hide(cx);
    }

@5brian 5brian marked this pull request as ready for review February 24, 2025 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant