Use a single action for toggling the language (#21331)

Follow-up of https://github.com/zed-industries/zed/pull/21299

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-11-29 16:02:57 +02:00 committed by GitHub
parent de55bd8307
commit 0306bdc695
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,9 +4,7 @@ use language::LanguageName;
use ui::{Button, ButtonCommon, Clickable, FluentBuilder, LabelSize, Tooltip};
use workspace::{item::ItemHandle, StatusItemView, Workspace};
use crate::LanguageSelector;
gpui::actions!(language_selector, [Toggle]);
use crate::{LanguageSelector, Toggle};
pub struct ActiveBufferLanguage {
active_language: Option<Option<LanguageName>>,