assistant: Fix toggling slash command menu from toolbar menu (#16459)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-08-19 14:47:05 +02:00 committed by GitHub
parent e68b2d5ecc
commit 911112d94a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 20 deletions

View file

@ -1718,7 +1718,8 @@ pub struct ContextEditor {
assistant_panel: WeakView<AssistantPanel>,
error_message: Option<SharedString>,
show_accept_terms: bool,
slash_menu_handle: PopoverMenuHandle<ContextMenu>,
pub(crate) slash_menu_handle:
PopoverMenuHandle<Picker<slash_command_picker::SlashCommandDelegate>>,
}
const DEFAULT_TAB_TITLE: &str = "New Context";